Strategy ROI
Automated Strategies are designed to allow traders to set a recurring buy high / sell low trading strategy on chain. Given this ability, it is possible to calculate each strategy's returns (ROI) using the information provided from strategy actions such as creation, balance changes and trades that interact with the available liquidity.
Disclaimer
The aim is to calculate an ROI figure that is most intuitive to the user based on their performance using the automated strategies.
We use a method that utilizes only the current prices of paired tokens, applied historically to every block, and evaluates the returns as a percentage of the liquidity provided.
Calculating ROI
In order to calculate the strategy ROI, we use the following rules:
Only trade events affect the calculation. This means that add/remove liquidity actions will not cause the ROI value to change.
We use "sub-strategies" to calculate strategy ROI. Sub-strategies are the times between each balance changing action (add/remove liquidity).
The strategy ROI is the sum of all the sub-strategy returns (USD) divided by the total liquidity amount deposited (evaluated in USD), provided that the liquidity has been traded with.
We use the current USD price of the tokens to calculate "sub-strategy" returns using the historical token amounts against the current USD price.
In order to calculate the ROI, we use this process:
Calculate the token gains for every sub-strategy
Multiple the token amounts with their current market price to USD
Sum the gains USD value and divide it by the strategy value
Last updated