Deposit

Deposit on Arcadia

Base
Base

Acts onchain

Deposits a token into an Arcadia Account. The owner approves the account for the amount and calls deposit, which pulls it from the owner; the account reads its own version when the plug runs and takes the shape that version accepts. A Spot account takes any token. A Margin account takes only tokens Arcadia's Registry prices, counts each against its creditor's exposure caps, holds at most fifteen distinct assets, and refuses anything else. Deposits are refused while Arcadia's accounts guard is paused. An account serves its owner alone, so the verb is the owner's own call: on an account the wallet owns the wallet sends it itself, and on an account the Plug account owns, which every account a creation composed with other writes opened is, it runs in the Plug account's program. Reach for it to fund an account, as collateral before a borrow or as the balance an asset manager works with, coiling the amount from a swap or a withdrawal earlier in the run.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

Open an Arcadia Margin Account With 100 USDC

arcadia
2actions
  1. 1·Create account

    Step one opens a new Arcadia margin account under the Margin USDC contract, creating the smart account that will hold deposits and serve as the borrowing base.

  2. 2·Deposit

    Next, 100 of USDC is deposited into the account created in step one, wired from slot 0.1 so the deposit lands in the account just opened rather than a fixed address.

Create an Arcadia account
Deposit into
  • Open an Arcadia Margin Account With 100 USDC

    arcadia

More on Arcadia · 7

On other protocols · 17