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: provide liquidity for zappers on Sepolia #519

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

danielattilasimon
Copy link
Collaborator

@danielattilasimon danielattilasimon commented Oct 16, 2024

For now, we're only deploying Uni v3 pools/zappers, no Curve.

Copy link
Collaborator

@bingen bingen left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!


contract DeployLiquity2Script is Script, StdCheats, MetadataDeployment {
using Strings for *;
using StringFormatting for *;

uint24 constant UNIV3_FEE = 0.3e4;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting format! I would have expected 3000 or 3e3 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It stands for 0.3% 😜


if (block.chainid == 11155111) {
// Provide liquidity for zaps if we're on Sepolia
ERC20Faucet monkeyBalls = new ERC20Faucet("MonkeyBalls", "MB", 0, type(uint256).max);
Copy link
Collaborator

Choose a reason for hiding this comment

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

😂

internal
returns (DeploymentResult memory r)
{
// Solidity...
Copy link
Collaborator

Choose a reason for hiding this comment

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

😬
Nice trick, though!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can't fathom why you can't cast an array of subclasses into an array of superclasses, not even explicitly, when the elements themselves can be implicitly cast. What are we supposed to do, create a new copy of the array just so we can end up with the exact same representation?

@danielattilasimon danielattilasimon merged commit a576f53 into main Oct 17, 2024
7 checks passed
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