Ooga Booga
  • AGGREGATOR
    • How Does It Work?
    • Liquidity Sources
    • Fee Model
  • DEVELOPERS
    • Swap API
      • Guide
      • Reference
      • Troubleshooting
    • Price API
      • Guide (WIP)
      • Reference
    • Endpoints
  • Resources
    • Audit
    • Media
    • Community Made Resources
  • DEPLOYMENTS
    • Aggregator
      • OBRouter Reference
    • Token
    • Ooga Bucks
  • TWAP
    • Benefits
    • Architecture
    • Miscellaneous
    • Trade Execution Logic and Retry Behavior
    • Frontrunning Considerations and Parameter Confidentiality
Powered by GitBook
On this page
  1. TWAP

Miscellaneous

PreviousArchitectureNextTrade Execution Logic and Retry Behavior

Last updated 21 hours ago

Funds Access: Users maintain full control over their assets throughout the process. TWAPs can be cancelled at any time before completion, allowing users to withdraw unexecuted funds back to their wallet.

Backend Infrastructure: All infrastructure, including Safe deployment, strategy execution, and transaction management, is handled by Brahma behind the scenes.

Withdrawals Without TWAP Setup: If funds are deposited into the console account but a TWAP is not created, users can withdraw those funds at any time via the withdraw button on the UI. Alternatively, these console accounts can also be accessed at

Slippage Configuration: Users can define a slippage threshold to guide execution. If a trade fails at the specified slippage, Brahma will retry by gradually increasing the threshold until the execution succeeds.

Risk Management: If a TWAP fails, Brahma will automatically return the remaining funds to the user's externally owned account from the Safe. There is no risk of funds becoming stuck. Users can also manually withdraw any available balance from their console account at any time.

Execution Fees:

  • Automation Setup Fee: Setting up a TWAP will incur a one-time gas fee when creating a new Automation SubAccount. This cost is paid directly to the blockchain and not charged by Brahma.

  • Per Trade Fee: Fees are applied on each individual trade, not the total order. For example, if each trade executes 3 HONEY to USDC, the effective amount per interval will be 3 HONEY minus the trade fee.

Residual Fund Sweeps: At the end of a TWAP, any remaining input tokens left in the user's Brahma Safe will be automatically refunded. Brahma performs a final sweep transaction to send unused funds back to the wallet. This refund will always be in the original input asset and may show up as an additional transaction following the final trade.

https://console.brahma.fi/