XaiService Contract
Overview
This contract functions as the accountant and manager for staking operations. It utilizes EIP-7201 to ensure storage integrity through the use of a transparent proxy pattern.
Structures
Misc
State
Service Pool
Views
Preview token conversion
Liquidity
Used for converting XAI or alXAI into stXAI.
Shares
Used for converting stXAI into XAI or alXAI.
User Info
This function provides information about redemptions.
Functions
Locking
Both functions require that XAI or esXAI be pre-approved, as applicable.
Swap Delegation type
Both functions require pre-approved stXAI or alXAI, as applicable.
Redemption
Start Redemption
This function creates a pending redemption request from stXAI or alXAI.
It requires pre-approved stXAI or alXAI, depending on the fromLiquid
flag.
Cancel Redemption
Pending
Fulfilled
In both cases, you can retrieve data from the userInfo
view.
The toLiquid
flag specifies the type of output token.
Redeem
You can retrieve data from the userInfo
view.
Last updated