Skip to content
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

Merged
merged 15 commits into from
Oct 30, 2024
Merged

Conversation

DavidMinarsch
Copy link
Collaborator

No description provided.

@@ -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
Copy link
Collaborator Author

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.
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#8 removed as per

Copy link
Collaborator

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting it back

@DavidMinarsch DavidMinarsch merged commit 6e9a8be into main Oct 30, 2024
5 of 6 checks passed
@DavidMinarsch DavidMinarsch deleted the celo branch October 30, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants