interface returned by GET /v2/gvaults/yield-sources to select the
correct deployed interface. Do not assume every gVault implements the same
operation lifecycle.
Before any deposit
- Resolve
contractAddressfrom the current environment’s catalogue. - Confirm the receiving address is allowlisted.
- Call
asset()and verify the returned token and chain. - Convert human-readable amounts to the asset’s native units.
- Estimate the result and set application-level slippage or minimum-output policy.
USTB-style synchronous deposit
USTB-style gVaults accept an ERC-20 approval followed by a deposit:receiver receives gVault shares and must be authorized for deposits.
Record the actual returned share amount; previews are estimates, not receipts.
Immediate withdrawal
Check the owner’s current synchronous capacity before submitting:owner is used, confirm the deployed contract’s
authorization rules before building that transaction.
Queued redemption
For an exit above current synchronous liquidity, submit:owner, share amount, and
returned requestId. Once the request is processed, the same owner claims: