- uUSDC Contract address
- uUSDC Contract abi
- USDC Contract address
- USDC Contract abi
- Network: Ropsten
- Caller 要有 USDC
- Caller 呼叫
approve(address _spender, uint256 _value)
of USDC,_spender 設定為 uUSDC contract address - Caller 呼叫
mint(uint256 underlyingToSupply)
of uUSDC,uUSDC 會從 caller 轉出數量為underlyingToSupply
的 USDC,並發行數量為underlyingToSupply
* 0.9 的 uUSDC Token 給 caller
- Caller 呼叫
balanceOf(address _tokenHolder)
of uUSDC,可以查詢 address 的 餘額
- Caller 呼叫
transfer(address recipient, uint256 amount)
of uUSDC,可以 transferamount
token to recipient
打一下我想像的流程:
approve(address _spender, uint256 _value)
,設定 uUSDC contract 為 _spender,並允許他動用 _value 的 usdc。mint(uint256 underlyingToSupply)
。underlyingToSupply
是我要存入的 usdc 量嗎?underlyingToSupply * 0.9
的 uUSDC Token。underlyingToSupply * 0.9
轉到用戶的 proxy wallet。以上入金整個作業完畢。balanceOf() 是查什麼的 balance?查用戶 proxy wallet 的 uUtoken 餘額嗎?還是換算回 usdc 的價格?