sepolia redeploy
This commit is contained in:
@@ -250,10 +250,15 @@ contract DeploySepolia is Script {
|
||||
|
||||
approveAll(address(pool));
|
||||
|
||||
console2.log('post-creation supply', pool.totalSupply());
|
||||
|
||||
// 1) Proportional mint (request some LP)
|
||||
uint256 lpToMint = 1_234; // arbitrary non-even amount
|
||||
// payer = this contract, receiver = this contract
|
||||
pool.mint(msg.sender, msg.sender, lpToMint, 0);
|
||||
uint256 minted = pool.mint(msg.sender, msg.sender, lpToMint, 0);
|
||||
|
||||
console2.log('minted', minted);
|
||||
console2.log('post-mint supply', pool.totalSupply());
|
||||
|
||||
// 2) Proportional burn (withdraw a small, non-even amount of LP)
|
||||
uint256 lpToBurn = 7;
|
||||
@@ -286,7 +291,7 @@ contract DeploySepolia is Script {
|
||||
|
||||
// 7) Final swap-style operation: burnSwap (burn LP then swap to single asset)
|
||||
// ensure we have some LP allowance
|
||||
uint256 lpForBurnSwap = 3; // non-even small amount
|
||||
uint256 lpForBurnSwap = 3 * 10**18; // non-even small amount
|
||||
uint256 burnToIndex = (n > 1) ? 1 : 0;
|
||||
pool.burnSwap(msg.sender, msg.sender, lpForBurnSwap, burnToIndex, 0, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user