Integrate Y Pool Contract
function deposit(uint256 amount)
Initiate a deposit request.
amountis the desired pool token to be deposited. After deposit, the liquidity provider will receive
xyETH), along with another transaction sent by XY worker.
function withdraw(uint256 amountXYWrappedToken)
Initiate a withdrawal request.
amountXYWrappedTokenis the desired amount of
XYWrappedTokento be redeemed to the underlying token.
deposit, you will receive the underlying token along with another transaction sent by XY worker.
uint256 public depositAndWithdrawFees;
We can tell how much native token in the Y Pool belongs to the XY worker from this state.
uint256 public closeSwapGasFees;
We can tell how much Y Pool token in the Y Pool belongs to the XY worker from this state.