Governance
Last updated
Last updated
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.
Initialize a staking pool for shareType
.
Name | Type | Description |
---|---|---|
Claim all rewards from staking pool.
Name | Type | Description |
---|---|---|
convert the share token of ‘poolId’ pool to LST token by convertType
.
Puase the contract by Pausable.
Set the paused
status of operation
for poolId
pool.
Set deduction rate
of claim rewards for poolId
pool.
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Unpuase the contract by Pausable.
Define the onlyOwner
access.
Update the reward rule of rewardType
for poolId
pool.
Override the inherited function to define onlyOwner
and whenNotPaused
access.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
shareType
contract IERC20
The share token.
poolId
uint256
The index of staking pool.
poolId
uint256
The index of staking pool.
convertType
enum UpgradeableStakingLST.ConvertType
The convert type.
poolId
uint256
The index of staking pool.
operation
enum PoolOperationPausable.Operation
The user operation.
paused
bool
The pause status.
poolId
uint256
The index of staking pool.
rate
uint256
The deduction rate. 1e18 is 100%
newOwner
address
undefined
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.