Euler
This section provides instructions for interacting with the vault and the appropriate functions to use.
The guide uses wUSDC and kpk_RWA_USDC tokens as examples
Deposit
The Euler UI will prompt you to execute these transactions in order to deposit USDC into the vault. The approval can be done through permit2 message or manually.
Call approve(address, uint256) on the USDC token.
spender(address) = 0x000000000022D473030F116dDEE9F6B43aC78BA3 (Permit2; A one-time signature to skip re-approvals on future deposits).
value(amount) = token amount to deposit
Call batch(tuple[]) on Euler's EVK.
bundle(tuple[]) = The ordered array of calldata to execute, created by the Euler UI.
Alternatively, you may also deposit USDC in the vault by executing the following transaction order:
Call approve(address, uint256) on USDC token.
spender(address) = 0x2b47c128b35dddcb66ce2fa5b33c95314a7de245, i.e. kpk_RWA_USDC.
value(amount) = token amount to deposit
Call deposit(uint256, address) on kpk_RWA_USDC.
assets(uint256) = token amount to deposit.
receiver(address) = your address, or the address to which you want the receipt tokens sent.
Withdraw
To initiate a withdrawal from the vault, you may utilise either of the following functions.
As suggested by the Euler UI:
Call batch(tuple[]) on Euler's EVK.
bundle(tuple[]) = The ordered array of calldata to execute, created by the Euler UI.
Alternatively, you may also call a direct withdrawal from the kpk_RWA_USDC contract:
Call withdraw(uint256, address, address) on kpk_RWA_USDC.
assets (uint256): amount to withdraw.
receiver(address) = address to receive USDC.
owner(amount) = owner of the kpk_RWA_USDC position.
Last updated