Skip to content

Commit

Permalink
Merge pull request #25 from OasisDEX/kk/sc-14667/bug-profit-to-collat…
Browse files Browse the repository at this point in the history
…eral-trigger-execution

fix: bug-profit-to-collateral-trigger-execution
  • Loading branch information
halaprix authored Mar 7, 2024
2 parents 7640124 + 7173a77 commit 76c3080
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/dma-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oasisdex/dma-library",
"version": "0.5.21-dma-v2-workers.25-auto-withdraw-to-ltv",
"version": "0.5.21-dma-v2-workers.28-auto-withdraw-to-ltv",
"typings": "lib/index.d.ts",
"types": "lib/index.d.ts",
"main": "lib/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const withdraw: AaveV3WithdrawToLTV = async (args, dependencies) => {
swapAmount: amountToSwap,
swapData: `${swapData.exchangeCalldata}`,
debtTokenAddress: getTokenAddressFromDependencies(dependencies, debtTokenSymbol),
debtIsEth: debtTokenSymbol === 'ETH',
debtIsEth: debtTokenSymbol === 'WETH',
proxy: dependencies.proxy,
addresses: dependencies.addresses,
network: dependencies.network,
Expand All @@ -97,7 +97,7 @@ export const withdraw: AaveV3WithdrawToLTV = async (args, dependencies) => {
dependencies,
currentPosition.collateral.symbol,
),
collateralIsEth: collateralTokenSymbol === 'ETH',
collateralIsEth: collateralTokenSymbol === 'WETH',
proxy: dependencies.proxy,
addresses: dependencies.addresses,
network: dependencies.network,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const withdraw: SparkWithdrawToLTV = async (args, dependencies) => {
swapAmount: amountToSwap,
swapData: `${swapData.exchangeCalldata}`,
debtTokenAddress: getTokenAddressFromDependencies(dependencies, debtTokenSymbol),
debtIsEth: debtTokenSymbol === 'ETH',
debtIsEth: debtTokenSymbol === 'WETH',
proxy: dependencies.proxy,
addresses: dependencies.addresses,
network: dependencies.network,
Expand All @@ -95,7 +95,7 @@ export const withdraw: SparkWithdrawToLTV = async (args, dependencies) => {
dependencies,
currentPosition.collateral.symbol,
),
collateralIsEth: collateralTokenSymbol === 'ETH',
collateralIsEth: collateralTokenSymbol === 'WETH',
proxy: dependencies.proxy,
addresses: dependencies.addresses,
network: dependencies.network,
Expand Down

0 comments on commit 76c3080

Please sign in to comment.