-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable pool fees when rebalancing Aerodrome AMO (#2276)
* make aerodrome AMO leave swap fees when rebalancing * minor adjustements and test fixes * fix bug * burn OETHb on the contract and minor renames * fix various issues with quoter and the tests * space * undo removal of default values * remove comment * add view to _checkForExpectedPoolPrice function * burn all the Super OETHb after performing the swap * put back burning OETHb after the swap function * add comment * minor test correction * OETHb on the contract after rebalance should be 0 * simplify nr of functions * Aerodrome AMO remove liquidity proper fix (#2290) * enhance the way we withdraw liquidity * better location * fix comment * update tests and simplify liquidity calculation * small fix * ignore dust in burning oeth as well * Update deployment ID --------- Co-authored-by: Shahul Hameed <10547529+shahthepro@users.noreply.github.com>
- Loading branch information
1 parent
16d7435
commit dfde2d8
Showing
7 changed files
with
209 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const { deployOnBaseWithGuardian } = require("../../utils/deploy-l2"); | ||
const { | ||
deployBaseAerodromeAMOStrategyImplementation, | ||
} = require("../deployActions"); | ||
|
||
module.exports = deployOnBaseWithGuardian( | ||
{ | ||
deployName: "020_upgrade_amo", | ||
}, | ||
async ({ ethers }) => { | ||
const cAMOStrategyProxy = await ethers.getContract( | ||
"AerodromeAMOStrategyProxy" | ||
); | ||
const cAMOStrategyImpl = | ||
await deployBaseAerodromeAMOStrategyImplementation(); | ||
|
||
return { | ||
actions: [ | ||
{ | ||
// 1. Upgrade AMO | ||
contract: cAMOStrategyProxy, | ||
signature: "upgradeTo(address)", | ||
args: [cAMOStrategyImpl.address], | ||
}, | ||
], | ||
}; | ||
} | ||
); |
Oops, something went wrong.