Skip to content

ReserveContractAuth ​

Git Source

Inherits:Variables, Error, Events

Functions ​

validAddress ​

validates that an address is not the zero address

solidity
modifier validAddress(address value_);

onlyAuth ​

Checks that the sender is an auth

solidity
modifier onlyAuth();

updateAuth ​

Updates an auth's status as an auth

solidity
function updateAuth(address auth_, bool isAuth_) external onlyOwner validAddress(auth_);

Parameters

NameTypeDescription
auth_addressThe address to update
isAuth_boolWhether or not the address should be an auth

updateRebalancer ​

Updates a rebalancer's status as a rebalancer

solidity
function updateRebalancer(address rebalancer_, bool isRebalancer_) external onlyAuth validAddress(rebalancer_);

Parameters

NameTypeDescription
rebalancer_addressThe address to update
isRebalancer_boolWhether or not the address should be a rebalancer

approve ​

Approves protocols to spend the reserves tokens

The parameters are parallel arrays

solidity
function approve(address[] memory protocols_, address[] memory tokens_, uint256[] memory amounts_) external onlyAuth;

Parameters

NameTypeDescription
protocols_address[]The protocols that will be spending reserve tokens
tokens_address[]The tokens to approve
amounts_uint256[]The amounts to approve

revoke ​

Revokes protocols' ability to spend the reserves tokens

The parameters are parallel arrays

solidity
function revoke(address[] memory protocols_, address[] memory tokens_) external onlyAuth;

Parameters

NameTypeDescription
protocols_address[]The protocols that will no longer be spending reserve tokens
tokens_address[]The tokens to revoke