Fund your account
Your account is the key on your machine or in your browser. Deposit USDG from any wallet and the node credits it once the transaction is confirmed.
USDGpays in
Robinhood Chainnetwork
…vault contract
…credited after
Deposits are not enabled on this node.
Withdraw unused credit
Deposits are not a one-way door. Open the console, ask the node for a voucher, and withdraw what you did not spend.
Deposit by hand
Using a block explorer or a script? Two calls, both on Robinhood Chain.
- On the USDG token, call approve(vault, amount).
- On the vault, call deposit(bytes20 account, uint256 amount). Amounts have 6 decimals: 5 USDG is 5000000.
vault … token … account your 20-byte id, 0x + 40 hex
The account id comes from secondhand account or the top of the console. Deposit to the wrong id and the credit goes to whoever holds that key, so check it first.
