Links to individual Contracts
Last updated
Last updated
The best place to start is with the contract migration functions in this repo:
The repo has links to the major repos that govern Sacred v1. The major repos are listed below:
The contracts hold governance functions such as delegation and voting. However, Sacred voting in the future may come from external DAOs.
Merkle trees for Sacred are handled here.
SacredTrees.sol queues and adds deposit/ withdrawal data to Sacred’s Merkle Tree. This is for all deposit and withdrawal events.
SACRED.sol is the contract that handles the ERC20 token and functions relating to it.
https://github.dev/Sacred-Finance/sacred-anonymity-mining
SacredProxy.sol
This is Sacred’s key feature and holds the Anonymity Mining contracts: This handles deposits and withdrawals, making sure they are recorded in Merkle Trees. On depositing or withdrawing, the total shares each user has is updated.
Miner.sol
This contract handles the actual mining and communicates with the pool that is below Sacred. It is called by SacredProxy each time there is a deposit/ withdrawal and updates the shares.
RewardSwap
After users have withdrawn their deposit, they also get Incognito Credits they can redeem for actual SACRED. This contract handles the swapping mechanism and price, based on amount of Sacred tokens in the contract.