-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: contract size limit #4
base: SOV-4316-upgradeable-contract
Are you sure you want to change the base?
Conversation
import {ILBFlashLoanCallback} from "./ILBFlashLoanCallback.sol"; | ||
|
||
interface ILBPairExt { | ||
function swap(bool swapForY, address to) external returns (bytes32 amountsOut); |
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.
this function is one of the most used - pls move it back to the LBPair contract.
function mint(address to, bytes32[] calldata liquidityConfigs, address refundTo) | ||
external | ||
returns (bytes32 amountsReceived, bytes32 amountsLeft, uint256[] memory liquidityMinted); | ||
|
||
function burn(address from, address to, uint256[] calldata ids, uint256[] calldata amountsToBurn) | ||
external | ||
returns (bytes32[] memory amounts); |
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.
mint
and burn
are actively used by users that manage liquidity actively which is a common case with concentrated liquidity.
consider moving them back to the LBPair contract.
another way to reduce contract size is to set optimizer_runs
in foundry.tomlto a lower value, e.g. 600.
No description provided.