Skip to content

Commit

Permalink
fix: hotfix to remove bad config update (#781)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rice <[email protected]>
  • Loading branch information
mrice32 authored Nov 22, 2024
1 parent cd94abe commit 6ccd718
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@across-protocol/sdk",
"author": "UMA Team",
"version": "3.3.16",
"version": "3.3.17",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/reference/sdk",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,15 @@ export class AcrossConfigStoreClient extends BaseAbstractClient {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { value, key, ...passedArgs } = args;

// Known transaction hash with bad config update.
// TODO: turn this into a rule that detects invalid UBAR values.
if (
passedArgs.transactionHash.toLowerCase() ===
"0x422abc617c6598e4b91859f99c392939d2034c1a839a342a963a34a2f0390195".toLowerCase()
) {
throw new Error("Known bad config update found");
}

// Drop value and key before passing args.
if (parsedValue?.rateModel !== undefined) {
const rateModelForToken = JSON.stringify(parsedValue.rateModel);
Expand Down

0 comments on commit 6ccd718

Please sign in to comment.