How to Use Sacred
Last updated
Last updated
Process Summary The entire process can be summarized in the diagram below:
The process is described starting from the basics and building up to the complete picture. Sacred’s components comprise of:
Pool (Sacred Box)
Each box holds a denomination the user can deposit. E.g. 0.1 ETH Each box has deposit/ withdraw features and interacts with Aave Each box earns interest on Aave from deposited tokens
SacredProxy
Deposit/withdrawal from the user goes through this proxy to the box so that SacredProxy can register deposit/withdraw records to SacredTree and also contact Miner for assigning rewards to the user.
SacredTrees
SacredTrees has a deposit tree and a withdraw tree, and uses zk proofs for validation in the withdrawal process.
Miner
It has reward logic to give Anonymity Points(Incognito Credits) and withdraw logic to swap IC with Sacred Tokens and send it to the user
AaveInterestsProxy
If a user makes deposits, SacredFinance deposits it to Aave for yield Sacred Finance collects all Aave interests from 4 instances to one place, AaveInterestsProxy.
RewardSwap
This receives Incognito Credits and swaps them with SACRED