function ROLES () external view returns (contract ROLESv1 )
Name
Type
Description
_0
contract ROLESv1
undefined
function TRSRY () external view returns (contract TRSRYv1 )
Name
Type
Description
_0
contract TRSRYv1
undefined
function changeKernel (contract Kernel newKernel_ ) external nonpayable
Function used by kernel when migrating to a new kernel.
Name
Type
Description
newKernel_
contract Kernel
undefined
function configureDependencies () external nonpayable returns (Keycode[] dependencies )
Define module dependencies for this policy.
Name
Type
Description
dependencies
Keycode[]
- Keycode array of module dependencies.
function decreaseDebt (contract ERC20 token_ , address debtor_ , uint256 amount_ ) external nonpayable
Allow authorized addresses to decrease debt in special cases
Name
Type
Description
token_
contract ERC20
undefined
debtor_
address
undefined
amount_
uint256
undefined
function grantDebtorApproval (address for_ , contract ERC20 token_ , uint256 amount_ ) external nonpayable
Allow an address to incur amount_
of debt from the treasury
Name
Type
Description
for_
address
undefined
token_
contract ERC20
undefined
amount_
uint256
undefined
function grantWithdrawerApproval (address for_ , contract ERC20 token_ , uint256 amount_ ) external nonpayable
Allow an address to withdraw amount_
from the treasury
Name
Type
Description
for_
address
undefined
token_
contract ERC20
undefined
amount_
uint256
undefined
function increaseDebt (contract ERC20 token_ , address debtor_ , uint256 amount_ ) external nonpayable
Allow authorized addresses to increase debt in special cases
Name
Type
Description
token_
contract ERC20
undefined
debtor_
address
undefined
amount_
uint256
undefined
function isActive () external view returns (bool )
Easily accessible indicator for if a policy is activated or not.
Name
Type
Description
_0
bool
undefined
function kernel () external view returns (contract Kernel )
Name
Type
Description
_0
contract Kernel
undefined
function reduceDebtorApproval (address for_ , contract ERC20 token_ , uint256 amount_ ) external nonpayable
Lower an address's debtor approval
Name
Type
Description
for_
address
undefined
token_
contract ERC20
undefined
amount_
uint256
undefined
function reduceWithdrawerApproval (address for_ , contract ERC20 token_ , uint256 amount_ ) external nonpayable
Lower an address's withdrawer approval
Name
Type
Description
for_
address
undefined
token_
contract ERC20
undefined
amount_
uint256
undefined
function requestPermissions () external view returns (struct Permissions [] requests)
Function called by kernel to set module function permissions.
Name
Type
Description
requests
Permissions[]
- Array of keycodes and function selectors for requested permissions.
function revokePolicyApprovals (address policy_ , contract ERC20 [] tokens_ ) external nonpayable
Anyone can call to revoke a deactivated policy's approvals.
Name
Type
Description
policy_
address
undefined
tokens_
contract ERC20[]
undefined
function withdrawReservesTo (address to_ , contract ERC20 token_ , uint256 amount_ ) external nonpayable
Custodian can withdraw reserves to an address.
Used for withdrawing assets to a MS or other address in special cases.
Name
Type
Description
to_
address
undefined
token_
contract ERC20
undefined
amount_
uint256
undefined
event ApprovalRevoked (address indexed policy_ , contract ERC20 [] tokens_ )
Name
Type
Description
policy_ indexed
address
undefined
tokens_
contract ERC20[]
undefined
error KernelAdapter_OnlyKernel (address caller_ )
Name
Type
Description
caller_
address
undefined
error PolicyStillActive ()
Policy_ModuleDoesNotExist
error Policy_ModuleDoesNotExist (Keycode keycode_ )
Name
Type
Description
keycode_
Keycode
undefined