Governance
The owner of ProxyAdmin
contract controls TransparentUpgradeableProxy
upgrade. The owner of TransparentUpgradeableProxy
has the authority to configure the parameters of Euphrates and pause/unpuase the whole TransparentUpgradeableProxy
contract.
Euphrates smart contract is integrated with Acala on-chain governance, where management of Euphrates such as initializing pools, and adjusting incentive rewards are under the jurisdiction of on-chain governance. With caution and prudence of this new innovation (governance of smart contract via Acala/Substrate on-chain governance), there is a multi-sig setup managed by the Acala Foundation, to pause the contracts in case of emergency. This may also be replaced by on-chain governance as we progress.
Governance Methods
addPool
Initialize a staking pool for shareType
.
Parameters
shareType
contract IERC20
The share token.
claimRewards
Claim all rewards from staking pool.
Parameters
poolId
uint256
The index of staking pool.
convertLSTPool
convert the share token of ‘poolId’ pool to LST token by convertType
.
Parameters
poolId
uint256
The index of staking pool.
convertType
enum UpgradeableStakingLST.ConvertType
The convert type.
pause
Puase the contract by Pausable.
setPoolOperationPause
Set the paused
status of operation
for poolId
pool.
Parameters
poolId
uint256
The index of staking pool.
operation
enum PoolOperationPausable.Operation
The user operation.
paused
bool
The pause status.
setRewardsDeductionRate
Set deduction rate
of claim rewards for poolId
pool.
Parameters
poolId
uint256
The index of staking pool.
rate
uint256
The deduction rate. 1e18 is 100%
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
newOwner
address
undefined
unpause
Unpuase the contract by Pausable.
Define the onlyOwner
access.
updateRewardRule
Update the reward rule of rewardType
for poolId
pool.
Override the inherited function to define onlyOwner
and whenNotPaused
access.
Parameters
poolId
uint256
The index of staking pool.
rewardType
contract IERC20
The reward token.
rewardRate
uint256
The reward amount per second.
endTime
uint256
The end time of fule.
Last updated