(Legacy) Integrate Y Pool Contract
Last updated
Was this helpful?
Last updated
Was this helpful?
yBridge has been updated to version v3, and this v2 documentation is currently only for reference purposes. If you need to integrate with our new contracts, please refer to Integrate YBridgeVault Contract to get the latest information.
Initiate a deposit request.
The amount
is the desired pool token to be deposited. After deposit, the liquidity provider will receive XYWrappedToken
(xyUSDT
, xyUSDC
or xyETH)
, along with another transaction sent by XY worker.
Initiate a withdrawal request.
The amountXYWrappedToken
is the desired amount of XYWrappedToken
to be redeemed to the underlying token.
Similar to deposit
, you will receive the underlying token along with another transaction sent by XY worker.
We can tell how much native token in the Y Pool belongs to the XY worker from this state.
We can tell how much Y Pool token in the Y Pool belongs to the XY worker from this state.