The flow
Starts it 2Logic 10Service 25
The steps in the order they run, from what starts it.
- 1Schedule TriggerSchedule triggerStarts it
- 2When clicking ‘Execute workflow’Manual triggerStarts it
- 3Swap ConfigsCodeLogic
- 4List walletsOne ShotService
- 5Fetch Pool TWA ObservationsOne ShotService
- 6IfIfLogic
- 7Calculate TWAPCodeLogic
- 8Get Wallet IDCodeLogic
- 9Create walletOne ShotService
- 10Get Last Trade TypeOne ShotService
- 11Assure WETH MethodsOne ShotService
- 12Assure SwapRouter02 MethodsOne ShotService
- 13Assure USDC MethodsOne ShotService
- 14Assure ETH/USDC Pool MethodsOne ShotService
- 15Assure QuoterV2 MethodsOne ShotService
- 16Parse Last TradeCodeLogic
- 17Buy, Sell or HoldSwitchLogic
- 18Don't Repeat SellsIfLogic
- 19Don't Repeat BuysIfLogic
- 20Get Sell QouteOne ShotService
- 21Get Buy QouteOne ShotService
- 22Confirm SellTelegramService
- 23Confirm BuyTelegramService
- 24Sell or Cancel?IfLogic
- 25Buy or Cancel?IfLogic
- 26Give Approval to Router (Sell)One Shot SynchService
- 27Sell CancelledTelegramService
- 28Give Approval to Router (Buy)One Shot SynchService
- 29Purchase CancelledTelegramService
- 30Sell ETHOne Shot SynchService
- 31Sell Failure NotificationTelegramService
- 32Buy ETHOne Shot SynchService
- 33Buy Failure NotificationTelegramService
- 34Check New FundsOne ShotService
- 35Check Remaining FundsOne ShotService
- 36Success Details (Sell)TelegramService
- 37Success Details (Buy)TelegramService