-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
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.
Looks good to me, thanks!
|
||
contract DeployLiquity2Script is Script, StdCheats, MetadataDeployment { | ||
using Strings for *; | ||
using StringFormatting for *; | ||
|
||
uint24 constant UNIV3_FEE = 0.3e4; |
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.
Interesting format! I would have expected 3000
or 3e3
😅
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.
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); |
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.
😂
internal | ||
returns (DeploymentResult memory r) | ||
{ | ||
// Solidity... |
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.
😬
Nice trick, though!
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.
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?
This allows for richer output, like color and progress bars.
For now, we're only deploying Uni v3 pools/zappers, no Curve.