用户仅调用 RWAEarnPool 方法进行订阅和赎回。
RWAEarnPool
用户将 USDT 存入 RWAEarnPool。
USDT
池向用户铸造份额。
资金通过 RWAAdapter 路由到外部金库流程。
RWAAdapter
赎回时,用户首先请求提款,然后在资金可用时领取。
deposit
向 receiver 铸造份额并从 msg.sender 转移资产。
receiver
msg.sender
requestWithdraw
从 msg.sender 销毁份额,记录请求的接收者和异步支付的金额。
claimWithdraw
在适配器资助的流动性在 RWAEarnPool 中可用后,将资产转移给接收者。
提款是异步的:
requestWithdraw 创建待处理请求
机器人通过适配器完成外部金库的赎回
适配器资金返回到赚取池
用户调用 claimWithdraw
Last updated 15 days ago
Was this helpful?