Repository navigation
Conversation
Co-authored-by: David Núñez <david@nucypher.com> Co-authored-by: Michalina <michalina.cienciala@akena.co>
…m governance contracts Co-authored-by: Michalina <michalina.cienciala@akena.co>
Co-authored-by: Michalina <michalina.cienciala@akena.co>
…er app per period
| import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; | ||
|
|
||
| /// @title Stable yield contract |
There was a problem hiding this comment.
| /// @title Stable yield contract | |
| /// @title StableYield contract |
| view | ||
| returns (uint96 reward) | ||
| { | ||
| uint96 authrorizedOverall = tokenStaking.getAuthorizedOverall( |
There was a problem hiding this comment.
| uint96 authrorizedOverall = tokenStaking.getAuthorizedOverall( | |
| uint96 authorizedOverall = tokenStaking.getAuthorizedOverall( |
| distributor.functionCall(data); | ||
| } | ||
|
|
||
| function caclulateReward(address application, uint256 stableYield) |
There was a problem hiding this comment.
| function caclulateReward(address application, uint256 stableYield) | |
| function caculateReward(address application, uint256 stableYield) |
| } | ||
|
|
||
| function sendToDistributor(address distributor, uint96 reward) internal { | ||
| token.mint(distributor, reward); |
There was a problem hiding this comment.
Given the criticality of minting tokens, what do you think if we add a manual approval step (e.g., from the council multisig)?
There was a problem hiding this comment.
I was hoping to have mintAndPush as permissionless method. Can you elaborate how this will work with council? in which moment? Like sort of queue?
Co-authored-by: David Núñez <david@nucypher.com>
|
Closing this proposal as obsolete following the TIP-100 changes in #171. StableYield was designed to mint and distribute rewards per application under the earlier staking model; TIP-100 moved beta operator compensation to direct DAO payments and changed that model. The related authorization tracking proposal in #166 is being retired as well. |
StableYieldcontract helps to automatize reward distribution. This level allows periodic minting and sending reward to distributor which can be Merkle tree or application itself (TACo app)