Prepare a withdrawal
prepare_withdrawalWithdrawals are closed while Obento is paused, so this returns an error. Builds the two calls that withdraw from Obento: approve the gateway to take the obUSD, then redeem with a 0.5% minimum out and partner ID 2. Leave out the amount to withdraw everything. Says whether the USDC arrives at once or on Autopilot's next pass. Sends nothing itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | USDC to withdraw, in dollars; leave out to withdraw everything | |
| address | Yes | The address that holds the obUSD | |
| receiver | No | Where the USDC goes; the address itself if left out |