generated from refcell/femplate
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace burn call, which doesn't exist on L2s
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,8 @@ abstract contract Pool is Clone, ReentrancyGuard, Multicall, IPool { | |
uint256 internal constant QUOTE_ADDRESS = 41; | ||
/// @dev Immutable quote token scale arg offset. | ||
uint256 internal constant QUOTE_SCALE = 61; | ||
/// @dev Address used to burn AJNA tokens | ||
address internal constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
EdNoepel
Author
Contributor
|
||
|
||
/***********************/ | ||
/*** State Variables ***/ | ||
|
@@ -433,9 +435,7 @@ abstract contract Pool is Clone, ReentrancyGuard, Multicall, IPool { | |
); | ||
|
||
// burn required number of ajna tokens to take quote from reserves | ||
IERC20(_getArgAddress(AJNA_ADDRESS)).safeTransferFrom(msg.sender, address(this), ajnaRequired); | ||
|
||
IERC20Token(_getArgAddress(AJNA_ADDRESS)).burn(ajnaRequired); | ||
IERC20(_getArgAddress(AJNA_ADDRESS)).safeTransferFrom(msg.sender, BURN_ADDRESS, ajnaRequired); | ||
|
||
// transfer quote token to caller | ||
_transferQuoteToken(msg.sender, amount_); | ||
|
why don't you do zero address?
it will integrate automagically with trackers instead of them needing to add a custom burn address