How trades are performed
Last updated
The following steps are performed to copy trades:
β’ Assembles the transaction using the Odos service, including details like input and output tokens.
β’ Updates the database with transaction details, including input and output token information.
β’ Checks the success of the transaction assembly simulation. If unsuccessful, updates the transaction status and logs the simulation error.
β’ Validates the trade against the vault's price thresholds to ensure transaction integrity.
β’ Executes the transaction, copying the trade on the blockchain.
Last updated