π2. (De)centralization
Last updated
Last updated
The smart contract itself can be considered decentralized: moderation functions rely on pre-determined conditions and can be called by anyone when these conditions are met.
There are several moderation functions:
No single address can change the smart contractβs functionalities, nor can it restrict other addresses in any way. Carpe Diem Pension consists of three interconnected smart contracts. To make this possible and efficient, the creator of the smart contracts must set up different parameters after publishing the contracts. When this process is done, ownership is automatically renounced.
Some functions can only be called from certain addresses. These addresses are always one of the three smart contracts in the Carpe Diem Pension system.
Function:
destroyShares
Effect:
remove shares from the targeted address; mints accrued CDP to the targeted address
Condition:
targeted address hasnβt interacted with the system for over 1111 days
Function:
doDailyUpdate -> mintDailyCDPandShares
Effect:
Calculates and appoints shares to the auction winners; mints and stores CDP inflation.
Condition:
Inserted day isnβt updated yet