Migrate from V2 to V3
This migration guide is intended for developers working with our smart contract. This document outlines the key changes between the current and upcoming versions, including function parameter renames,
Last updated
- contract.deposit(amount);
+ contract.deposit(vaultTokenAmount);- contract.withdraw(xyWrappedTokenAmount);
+ contract.withdraw(shareAmount);- // Deprecated: The following variables are no longer supported
- uint256 gasFees = contract.closeSwapGasFees;
- uint256 fees = contract.depositAndWithdrawFees;
+ // Implement new logic for liquidity calculation heresolidityCopy coderequire(contract.acceptDepositRequest, "Deposit requests are currently not accepted.");solidityCopy coderequire(contract.acceptWithdrawRequest, "Withdraw requests are currently not accepted.");