Skip to content

Commit

Permalink
Fix migrations issues with MKR token (#3976)
Browse files Browse the repository at this point in the history
* Fixed migrations issues with MKR token

* Fix issue with error handling
  • Loading branch information
piotrwitek authored Jun 28, 2024
1 parent bd09905 commit d7fb5a5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ export async function getMigrationPositionParameters({
erc20ProxyActions: erc20ProxyActions,
}

const res = await strategies.common.migrate(args, sharedDependencies)
let res
try {
res = await strategies.common.migrate(args, sharedDependencies)
} catch (error) {
console.error('Failed to get migration parameters', error)
throw error
}

return res
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"@lifi/wallet-management": "^2.6.1",
"@lifi/widget": "^2.10.2",
"@metamask/eth-sig-util": "^5.0.2",
"@oasisdex/addresses": "0.1.72",
"@oasisdex/addresses": "0.1.74",
"@oasisdex/automation": "1.6.5-morpho.6",
"@oasisdex/dma-library": "0.6.58",
"@oasisdex/dma-library": "0.6.59",
"@oasisdex/multiply": "^0.2.11",
"@oasisdex/transactions": "0.1.4-alpha.0",
"@oasisdex/utils": "^0.0.8",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2502,10 +2502,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@oasisdex/addresses@0.1.72":
version "0.1.72"
resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.72.tgz#2d94414350ed8793242203375d51799dc05814f0"
integrity sha512-u4HQJ7Qoeb/AWlyneYXJZETlKy+bpI+BYr3JsAAl70OIUz7YYkXGZKdMyUgjKk+GKjubN1vCi+OY/M0LpSPVEQ==
"@oasisdex/addresses@0.1.74":
version "0.1.74"
resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.74.tgz#e0bebdd9c91648a73be38d5580d643b19265e2ca"
integrity sha512-Bj8m+r98RLTOuaPeaAqjXypj96FrABV4whdCIXHc94zgtuv/8D37J7z+mSJXdfSLZxBh80WcSmCJExw4ZiPxZg==

"@oasisdex/automation@1.6.5-morpho.6":
version "1.6.5-morpho.6"
Expand All @@ -2514,10 +2514,10 @@
dependencies:
ethers "^5.6.2"

"@oasisdex/dma-library@0.6.58":
version "0.6.58"
resolved "https://registry.yarnpkg.com/@oasisdex/dma-library/-/dma-library-0.6.58.tgz#1850edac6a49bff6a13f64a5098ad841cbbe015e"
integrity sha512-hlt2J/EUNK5qbL2tbXfDQdrHcSDJBohC0EmVgRtpxba4HbrIvJBUwcohoEUe9lj0fOnEI7bRQWdOeQ69Q2io4Q==
"@oasisdex/dma-library@0.6.59":
version "0.6.59"
resolved "https://registry.yarnpkg.com/@oasisdex/dma-library/-/dma-library-0.6.59.tgz#994c85b4b472a9895244a9b5624d15275add2c4a"
integrity sha512-sJMJcC3la/KQepvYj3T4jCssoxD8fWJxdQQi5E+W0xx+ImMLIl43XwdSxVcFI9iXji1mHkYjvMtGG2OGEJBDHA==
dependencies:
bignumber.js "9.0.1"
ethers "^5.7.2"
Expand Down

0 comments on commit d7fb5a5

Please sign in to comment.