Euler

This section provides instructions for interacting with the vault and the appropriate functions to use.

circle-info

The guide uses wUSDC and kpk_RWA_USDC tokens as examples

Deposit

The Euler UIarrow-up-right will prompt you to execute these transactions in order to deposit USDC into the vault. The approval can be done through permit2arrow-up-right message or manually.

1

Call approve(address, uint256)arrow-up-right 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

2

Call batch(tuple[])arrow-up-right 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:

1

Call approve(address, uint256)arrow-up-right on USDC token.

  • spender(address) = 0x2b47c128b35dddcb66ce2fa5b33c95314a7de245, i.e. kpk_RWA_USDC.

  • value(amount) = token amount to deposit

2

Call deposit(uint256, address)arrow-up-right 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:

1

Call batch(tuple[])arrow-up-right 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:

1

Call withdraw(uint256, address, address)arrow-up-right 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