Skip to main content

Interact through Etherscan

Deposit

  1. Get an address of the needed Default Collateral contract from the Deployments page (e.g., 0xC329400492c6ff2438472D4651Ad17389fCb843a).

    deposit_1

  2. Open "Contract/Read Contract as Proxy" tab.

    deposit_2

  3. Get the collateral's underlying asset address from asset method (e.g., 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0).

    deposit_3

  4. Open the asset's "Contract/Read Contract as Proxy (or Contract/Read Contract)" tab.

    deposit_4

  5. Get the asset's number of decimals from decimals method (e.g., 18).

    deposit_5

  6. Open the asset's "Contract/Write Contract as Proxy (or Contract/Write Contract)" tab.

    deposit_6

  7. Connect your wallet by clicking "Connect to Web3".

    deposit_7

  8. Approve the asset to the Default Collateral contract via approve method by clicking "Write".

    • spender - the Default Collateral's address (e.g., 0xC329400492c6ff2438472D4651Ad17389fCb843a)
    • amount - a needed deposit amount of the asset multiplied by 10^decimals (e.g., 0.1 wstETH means 100000000000000000)

    deposit_8

  9. Open the collateral's "Contract/Write Contract as Proxy" tab and connect the wallet.

    deposit_9

  10. Deposit the asset to the Default Collateral contract via deposit (0x47e7ef24) method by clicking "Write".

    • recipient - your wallet address (0x...)
    • amount - a needed deposit amount of the asset multiplied by 10^decimals (e.g., 0.1 wstETH means 100000000000000000)

    deposit_10

Withdraw

  1. Get an address of the needed Default Collateral contract from the Deployments page (e.g., 0xC329400492c6ff2438472D4651Ad17389fCb843a).

    withdraw_1

  2. Open "Contract/Read Contract as Proxy" tab.

    withdraw_2

  3. Get the collateral's underlying asset address from asset method (e.g., 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0).

    withdraw_3

  4. Open the asset's "Contract/Read Contract as Proxy (or Contract/Read Contract)" tab.

    withdraw_4

  5. Get the asset's number of decimals from decimals method (e.g., 18).

    withdraw_5

  6. Open the collateral's "Contract/Write Contract as Proxy" tab.

    withdraw_6

  7. Connect your wallet by clicking "Connect to Web3".

    withdraw_7

  8. Withdraw the asset from the Default Collateral contract via withdraw method by clicking "Write".

    • recipient - your wallet address (0x...)
    • amount - a needed withdrawal amount of the asset multiplied by 10^decimals (e.g., 0.1 wstETH means 100000000000000000)

    withdraw_8