Apex Docs
  • Overview
  • How it works
    • The Basics of Perpetual Futures and Perpetual Protocol
    • APEX Limit Order Design
    • Comparison with order book exchanges
  • User Guide
    • Add xDai Chain to Your Wallet
    • Acquiring xDAI tokens
    • Getting USDC on xDai
    • Interacting with xDai
    • Spawn your smart wallet
    • Funding your smart wallet
    • Approve Spend
    • Fees
    • Creating Orders
      • Creating Limit orders
  • Order Types
    • Understanding Slippage
    • Market Orders
    • Limit Orders
    • Stop Orders
      • Stop Market
      • Stop Limit
      • Stop Market vs Stop Limit
      • Trailing Stop Orders
  • Developer Guide
    • Smart Contracts
      • Limit Order Book
      • Smart Wallet Factory
      • Smart Wallet
    • Keeper Bots
      • Overview
      • Running your own bot
      • Documentation
Powered by GitBook
On this page

Was this helpful?

  1. User Guide

Approve Spend

When creating an order, the bot fee is held by the smart contract in order to pay the keeper bot when the order gets executed.

As such, you need to approve the smart contract to spend your USDC. This is similar to the ERC-20 token approvals for other smart contract. We allow users to approve as much or as little as they wish, and would recommend setting the approval as low as necessary for the orders they wish to create.

For example, Charlie wishes to create 10 orders, with each order having a bot fee of $0.20. He should therefore set the approval to $2 to allow him to create these orders.

PreviousFunding your smart walletNextFees

Last updated 4 years ago

Was this helpful?