-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: further refactor to account for multi-chain version #9
Conversation
@@ -73,6 +73,11 @@ abstract contract MemeBase is MemeFactory { | |||
address public immutable l2TokenRelayer; | |||
// Oracle address | |||
address public immutable oracle; | |||
// Token transfer gas limit for L1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is base specific
l2TokenRelayer = _l2TokenRelayer; | ||
oracle = _oracle; | ||
balancerPoolId = _balancerPoolId; | ||
} | ||
|
||
/// @dev Buys USDC on UniswapV2 using ETH amount. | ||
/// @param ethAmount Input ETH amount. | ||
/// @param nativeTokenAmount Input ETH amount. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed everything to nativeToken (payment token) and referenceToken (stablecoin or some other coin we "store" things in until burn)
@@ -86,20 +86,15 @@ abstract contract MemeFactory { | |||
uint256 public constant LP_PERCENTAGE = 50; | |||
// L1 OLAS Burner address | |||
address public constant OLAS_BURNER = 0x51eb65012ca5cEB07320c497F4151aC207FEa4E0; | |||
// Token transfer gas limit for L1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specific to chain, moved up
router = _router; | ||
factory = _factory; | ||
balancerVault = _balancerVault; | ||
minNativeTokenValue = _minNativeTokenValue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#8 removed as per
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But now it's not set at all. This minimum amount is chain specific and will vary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting it back
test: testing celo contract
refactor: finalizing both approaches
No description provided.