⬅️ Contracts
Controller Contract to set tribe per block in Rewards Distributor Admin on Rari
Mainnet implementations
Core, RewardsDistributorAdmin, TribalChiefSyncV2, TribalChief, CErc20Delegator
Events
ContractAdminRoleUpdate
event ContractAdminRoleUpdate(bytes32,bytes32)
Params
| Param |
Type |
Notes |
| oldContractAdminRole |
bytes32 indexed |
|
| newContractAdminRole |
bytes32 indexed |
|
CoreUpdate
event CoreUpdate(address,address)
Params
| Param |
Type |
Notes |
| oldCore |
address indexed |
|
| newCore |
address indexed |
|
Paused
event Paused(address)
Params
| Param |
Type |
Notes |
| account |
address |
|
RewardsDistributorAdminChanged
event RewardsDistributorAdminChanged(address,address)
Params
| Param |
Type |
Notes |
| oldRewardsDistributorAdmin |
address |
|
| newRewardsDistributorAdmin |
address |
|
SpeedChanged
event SpeedChanged(uint256)
Params
| Param |
Type |
Notes |
| newSpeed |
uint256 |
|
Unpaused
event Unpaused(address)
Params
| Param |
Type |
Notes |
| account |
address |
|
Methods
CONTRACT_ADMIN_ROLE
function CONTRACT_ADMIN_ROLE() view returns(bytes32)
a role used with a subset of governor permissions for this contract only
Returns
cTokenAddress
function cTokenAddress() view returns(address)
address of the CToken this contract controls rewards for
Returns
core
function core() view returns(address)
address of the Core contract referenced
Returns
| Param |
Type |
Notes |
|
address |
ICore implementation address |
fei
function fei() view returns(address)
address of the Fei contract referenced by Core
Returns
| Param |
Type |
Notes |
|
address |
IFei implementation address |
feiBalance
function feiBalance() view returns(uint256)
fei balance of contract
Returns
| Param |
Type |
Notes |
|
uint256 |
fei amount held |
getNewRewardSpeed
function getNewRewardSpeed() view returns(uint256,bool)
function to get the new comp speed and figure out if an update is needed
Returns
| Param |
Type |
Notes |
| newCompSpeed |
uint256 |
the newly calculated compSpeed based on allocation points in the TribalChief |
| updateNeeded |
bool |
boolean indicating whether the new compSpeed is not equal to the existing compSpeed |
isBorrowIncentivized
function isBorrowIncentivized() view returns(bool)
boolean which decides the action to incentivize
Returns
isContractAdmin
function isContractAdmin(address) view returns(bool)
returns whether a given address has the admin role for this contract
Params
| Param |
Type |
Notes |
| _admin |
address |
|
Returns
pause
function pause() nonpayable
set pausable methods to paused
paused
function paused() view returns(bool)
Returns true if the contract is paused, and false otherwise.
Returns
rewardsDistributorAdmin
function rewardsDistributorAdmin() view returns(address)
rewards distributor admin contract
Returns
setAutoRewardsDistribution
function setAutoRewardsDistribution() nonpayable
function to automatically set the rewards speed on the RewardsDistributor contract through the RewardsDistributorAdmin
setContractAdminRole
function setContractAdminRole(bytes32) nonpayable
sets a new admin role for this contract
Params
| Param |
Type |
Notes |
| newContractAdminRole |
bytes32 |
|
setCore
function setCore(address) nonpayable
set new Core reference address
Params
| Param |
Type |
Notes |
| newCore |
address |
the new core address |
setRewardsDistributorAdmin
function setRewardsDistributorAdmin(address) nonpayable
API to point to a new rewards distributor admin contract
Params
| Param |
Type |
Notes |
| _newRewardsDistributorAdmin |
address |
the address of the new RewardsDistributorAdmin contract |
tribalChief
function tribalChief() view returns(address)
tribal chief contract
Returns
tribalChiefRewardIndex
function tribalChiefRewardIndex() view returns(uint256)
reward index on tribal chief to grab this staked token wrapper's index
Returns
tribe
function tribe() view returns(address)
address of the Tribe contract referenced by Core
Returns
| Param |
Type |
Notes |
|
address |
IERC20 implementation address |
tribeBalance
function tribeBalance() view returns(uint256)
tribe balance of contract
Returns
| Param |
Type |
Notes |
|
uint256 |
tribe amount held |
unpause
function unpause() nonpayable
set pausable methods to unpaused
⬅️ Contracts