
What this does
This plug creates an Arcadia margin account under the Margin USDC contract and deposits 100 USDC into it. It asks the caller for 100 USDC and the authority to open the account and transfer the token. It fires once when run, chaining the deposit to the address of the account created in the first step. Doing it by hand means opening the account and deposit separately and risking the deposit being sent to the wrong account address.
Actions · 2