How Tortle Ninja calculates its APRs and APYs

As you might be aware, Tortle Ninja lets you play with over 400 assets, and we meticulously measure each of them.

AutoLayer
3 min readMay 25, 2023

At Tortle Ninja, we specialize in creating advanced financial strategies and products. However, determining their value is a challenge in its own right. In this article, we will outline how we calculate all of our key performance indicators (KPIs). As you might be aware, Tortle Ninja lets you play with over 400 assets, and we meticulously measure each of them. To start, let’s take a closer look at the distinct categories of assets we possess and how we evaluate them:

  • Individual assets: These are the simplest to measure. For the largest assets such as WBTC, ETH, and USDC, we use data from the oracle. However, most of the assets in the ecosystem aren’t tracked by Chainlink. For those, we rely on and Graphs, which provide real-time data on all the assets that Chainlink doesn’t cover.
  • Liquidity pools: Here, we have two types of LPs: balanced and unbalanced. Determining the value of both types of pools is relatively straightforward. First, we calculate its composition, and then we use other subgraphs to do the same and add the two values together. Some LPs are composed of more than two assets, so our formula calculates all their values and adds them.
  • Vaults: For vaults, we calculate the price of the vault’s share by either asking the provider its price or by finding out the value of the asset that’s inside. Vaults are structured products, so the deployer normally has a way to measure their value. For simple vaults, we just go to the farm, calculate the LP’s price, and add the reward token.

On the APR Details page, you will see a breakdown of all assets involved, their actual value, and the ROI of the recipe.

How do we calculate the APY for a given recipe?

Tortle Ninja creates unique DeFi products that are a mix of options, structured products, and exotic finance. As each recipe is unique, the only way to determine its annual percentage yield (APY) is to assess its return on investment (ROI) over time and estimate how much it will earn in a year at the current ROI. For instance, if a recipe has a 1% ROI within 24 hours, its projected APY would be 365%.

However, there is something that can occur when recipes are initially run. They may show a low APY at first, but that’s because we do not subtract any fees from this calculation. Therefore, it is advisable to allow the recipe to run for a few minutes before assessing it. The longer a recipe has been active, the more accurate the APY will be, as it will be normalized with time.

If you require further information after reading this, please don’t hesitate to ask on Discord or Telegram.

About Tortle Ninja

Tortle Ninja is a no-code decentralized financial tool built to enable retail investors, fintech, and crypto enthusiasts to create combined DeFi strategies.

Tortle Ninja users can create combinations of DeFi operations by linking the nodes and defining a strategy. You can split, create a limit, stop-loss orders, and even more complex strategies.

Website | Docs | Twitter | Discord | TG

--

--

AutoLayer

The premier Liquid Restaking Tokens (LRT) Finance app on Arbitrum. All LRTfi. One interface.