You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function MINTR() externalviewreturns (contractMINTRv1)
Returns
Name
Type
Description
_0
contract MINTRv1
undefined
ROLES
function ROLES() externalviewreturns (contractROLESv1)
Returns
Name
Type
Description
_0
contract ROLESv1
undefined
TRSRY
function TRSRY() externalviewreturns (contractTRSRYv1)
Modules
Returns
Name
Type
Description
_0
contract TRSRYv1
undefined
addPool
function addPool(uint256index_, addresspool_) external nonpayable
Adds a liquidity pool to the list of pools to be minted into
Parameters
Name
Type
Description
index_
uint256
The index in the pools array to add the liquidity pool to.
pool_
address
The address of the liquidity pool to add.
bounty
function bounty() externalviewreturns (uint256)
Returns
Name
Type
Description
_0
uint256
undefined
changeKernel
function changeKernel(contractKernelnewKernel_) externalnonpayable
Function used by kernel when migrating to a new kernel.
Parameters
Name
Type
Description
newKernel_
contract Kernel
undefined
configureDependencies
function configureDependencies() external nonpayable returns (Keycode[] dependencies)
Define module dependencies for this policy.
Returns
Name
Type
Description
dependencies
Keycode[]
- Keycode array of module dependencies.
distribute
function distribute() external nonpayable
Send the epoch's reward to the staking contract, and mint rewards to Uniswap V2 pools. This removes opportunity cost for liquidity providers by sending rebase rewards directly into the liquidity pool. NOTE: This does not add additional emissions (user could be staked instead and get the same tokens).
isActive
function isActive() externalviewreturns (bool)
Easily accessible indicator for if a policy is activated or not.
Returns
Name
Type
Description
_0
bool
undefined
kernel
function kernel() externalviewreturns (contractKernel)
Returns
Name
Type
Description
_0
contract Kernel
undefined
nextRewardFor
function nextRewardFor(addresswho_) externalviewreturns (uint256)
Returns the next reward for the given address based on their OHM balance.
Parameters
Name
Type
Description
who_
address
The address to get the next reward for.
Returns
Name
Type
Description
_0
uint256
uint256 The next reward for the given address.
pools
function pools(uint256) externalviewreturns (address)
Policy state
Parameters
Name
Type
Description
_0
uint256
undefined
Returns
Name
Type
Description
_0
address
undefined
removePool
function removePool(uint256index_, addresspool_) external nonpayable
Removes a liquidity pool from the list of pools to be minted into
This function is only available to an authorized user.
Parameters
Name
Type
Description
index_
uint256
The index in the pools array of the liquidity pool to remove.
pool_
address
The address of the liquidity pool to remove.
requestPermissions
function requestPermissions() externalviewreturns (struct Permissions[] permissions)
Function called by kernel to set module function permissions.
Returns
Name
Type
Description
permissions
Permissions[]
- Array of keycodes and function selectors for requested permissions.
retrieveBounty
function retrieveBounty() external nonpayable returns (uint256)
Mints the bounty (if > 0) to the staking contract for distribution.
Returns
Name
Type
Description
_0
uint256
uint256 The amount of OHM minted as a bounty.
rewardRate
function rewardRate() externalviewreturns (uint256)
Returns
Name
Type
Description
_0
uint256
undefined
setBounty
function setBounty(uint256bounty_) external nonpayable
Adjusts the bounty
This function is only available to an authorized user.
Parameters
Name
Type
Description
bounty_
uint256
The new bounty amount in OHM (9 decimals).
setPools
function setPools(address[] pools_) external nonpayable
Sets the Uniswap V2 pools to be minted into
This function is only available to an authorized user.
Parameters
Name
Type
Description
pools_
address[]
The array of Uniswap V2 pools.
setRewardRate
function setRewardRate(uint256newRewardRate_) external nonpayable
Sets the new OHM reward rate to mint and distribute per epoch
Parameters
Name
Type
Description
newRewardRate_
uint256
The new rate to set (9 decimals, i.e. 10_000_000 / 1_000_000_000 = 1%)
triggerRebase
function triggerRebase() external nonpayable
Trigger rebases via distributor. There is an error in Staking's stake function which pulls forward part of the rebase for the next epoch. This path triggers a rebase by calling unstake (which does not have the issue). The patch also restricts distribute to only be able to be called from a tx originating in this function.