sepolia redeploy

This commit is contained in:
tim
2025-11-11 13:20:23 -04:00
parent 2fa2a05459
commit 54c76be2f0
19 changed files with 36 additions and 30 deletions

View File

@@ -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);
}