Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.98 KB

DCA.md

File metadata and controls

56 lines (35 loc) · 1.98 KB

DCA

Welcome to Aquas.Trade

on-chain DCA on any DEX

New Utilities for NFT holders and deflationary tokenomics for the AQUA token

  • Cost 1 AQUA to submit orders through DCA protocol.
    • 100% of the collected AQUA is burned.
    • Functionality is public to burn.
  • Gold NFT Holders are granted free access to use DCA functionality on any DEX protocol.

Fee

  • 1 AQUA token
    • approval is required before submitting DCA order

Submit DCA Order

For now, use these defaults within the UI:

  • input amount should be 0.1 or more
  • intervalMinutes : 1
  • durationHours : 24 (set min to 1 for button and add :number)
  • minPrice : 0.000000000000000001
  • maxPrice : 987654321

Report bugs

Github: issues

WIP

  • add number of swaps and the expected amount size per swap in UI to check for errors, swap_minimums_getAmountsOut,etc

tldr

  • executeOrders (storageID, isBuying) : Starts at index 1 (not zero)

  • GetOrderDetails(storageID, and matching globalID) : the globalID is retreivable from the factory using GetAllOrders .

  • globalID : Increments ++ only from each new SubmitDCAOrder

  • GetAllOrders (storageID, traderWallet) : this returns an array of the globalIDs that are recorded within this storageID for that trader. Therefore to fetch, loop storageID, traderWallet if StorageID has orders. GetOrderLength : input the storageID to get the number of orders, if zero dont fetch

  • index : the Incrementor value : globalID : you can determine your ID by fetching this value before placing order.

  • To delete an order, you will need the globalID and the storageID

  • GetTokenBaseUsingIndex : returns the token address assigned to base asset

  • GetTokenQuoteUsingIndex : returns the token address assigned to quote asset

Advanced Traders

At AquasTrade we enjoy trading as much as a trading bot, but we're human and get tired.

ADMIN

  • DCA Orders : Add New DEX AMM ROUTER