callback-style funding option
This commit is contained in:
@@ -279,7 +279,7 @@ contract DeploySepolia is Script {
|
||||
uint256 inputIndex = 0;
|
||||
uint256 outputIndex = n > 1 ? n - 1 : 0;
|
||||
uint256 maxIn = 89 * 10**6; // varied
|
||||
pool.swap(msg.sender, msg.sender, inputIndex, outputIndex, maxIn, int128(0), 0, false);
|
||||
pool.swap(msg.sender, bytes4(0), msg.sender, inputIndex, outputIndex, maxIn, int128(0), 0, false);
|
||||
|
||||
// 6) Collect protocol fees now (after some swaps) so some will have been moved out
|
||||
pool.collectProtocolFees();
|
||||
|
||||
Reference in New Issue
Block a user