âtv tokenization platform
At the heart of aarnâ protocol lies the âtv tokenization platform, a DeFi infrastructure enabling the creation of structured on-chain investment products called âtv vaults. These vaults feature a wide range of strategies, including capital multiplication and yield optimization, AI-driven algorithmic products, derivatives.
Ethereum >
Sonic >
Arbitrum >
âtv smart contracts architecture
âtvFactory: Creates âtv vaults using Clones (EIP-1167) and 2 step Ownable with time delay module contract. It clones the âtvBase implementation contract, enabling or disabling features as needed, and takes pool data as an argument.
âtvBase: The implementation contract used to clone âtv vaults. When users deposit stablecoins, specific âtv vault shares are minted based on NAV and transferred to users' wallets. The aarnâ DAO can pause and unpause vaults. All features are coded in âtvBase and can be enabled or disabled during vault creation.
âtvManager: Acts as the controller for âtv tokenization, handling rebalancing and managing team wallets in âtv vaults. Team wallets, once added, cannot be removed. The contract allows activation and deactivation of wallets by aarnâ DAO to prevent malicious activity or compromised private keys. New versions of âtvManager can be deployed for updated rebalancing strategies.
âtvStorage: Stores all âtv product details, accessed through âtvBase and âtvManager. It contains TVL-related calculations for âtv products.
âtvPassiveRebalanceStrategies: Includes passive rebalancing strategies, which are enabled at vault creation. Rebalancing occurs automatically at set intervals.
âtvOracle: Converts token prices to USDC using Uniswap V3 TWAP and Chainlink oracles. It includes functions for price estimation, and in Arbitrum, a sequencer fetches prices from Chainlink. It also optimizes gas costs for withdrawals via a queuing system, allowing cumulative swaps for grouped user withdrawals.
TimeDelay: TimeDelayModule enforces a delay for critical functions, to enhance security by ensuring that specific actions can only be executed after a predefined delay, allowing time for review and potential rescind of queued transactions.
TimeLock: Timelock contract provides the stake/Deposit and unstake/Withdraw functionality to the users to generate rewards in $AARNA tokens. On staking, users receive ASRT (aarnâ Staking Reward Token) token as reward which can be exchanged with the AARNA.
ASRT: aarnâ Staking Reward Token is a standard ERC-20 token used as a reward token which can be exchanged for AARNA. The maximum supply of ASRT is set according to the staking program and each token has a fixed value of USD 1.
DexAdapter: The DexAdapter module encapsulates DEX swap operations within the ATV infrastructure. It abstracts and isolates chain-specific swap logic, enabling support for different networks, such as Sonic and Base Chain through dedicated implementations.
DataConsumerWithSequencerCheck: On L2 chains like Arbitrum, if the sequencer goes down, oracle prices can become outdated. Chainlink’s Sequencer Uptime Feeds let contracts detect when the sequencer is offline or has just come back online. This helps prevent using stale prices during critical actions like swaps or rebalances, reducing risk and improving protocol safety. "DataConsumerWithSequencerCheck" follows Chainlink's Sequencer to serve the above purpose.
Last updated