GoldfinchConfig
GoldfinchConfig
Deployment on Ethereum mainnet:
https://etherscan.io/address/0xaA425F8BfE82CD18f634e2Fe91E5DdEeFD98fDA1
This contract stores mappings of useful "protocol config state", giving a central place
for all other contracts to access it. For example, the TransactionLimit, or the PoolAddress. These config vars
are enumerated in the ConfigOptions
library, and can only be changed by admins of the protocol.
GO_LISTER_ROLE
bytes32 GO_LISTER_ROLE
addresses
mapping(uint256 => address) addresses
numbers
mapping(uint256 => uint256) numbers
goList
mapping(address => bool) goList
AddressUpdated
event AddressUpdated(address owner, uint256 index, address oldValue, address newValue)
NumberUpdated
event NumberUpdated(address owner, uint256 index, uint256 oldValue, uint256 newValue)
GoListed
event GoListed(address member)
NoListed
event NoListed(address member)
valuesInitialized
bool valuesInitialized
initialize
function initialize(address owner) public
setAddress
function setAddress(uint256 addressIndex, address newAddress) public
setNumber
function setNumber(uint256 index, uint256 newNumber) public
setTreasuryReserve
function setTreasuryReserve(address newTreasuryReserve) public
setSeniorPoolStrategy
function setSeniorPoolStrategy(address newStrategy) public
setCreditLineImplementation
function setCreditLineImplementation(address newAddress) public
setTranchedPoolImplementation
function setTranchedPoolImplementation(address newAddress) public
setBorrowerImplementation
function setBorrowerImplementation(address newAddress) public
setGoldfinchConfig
function setGoldfinchConfig(address newAddress) public
setMonthlyScheduleRepo
function setMonthlyScheduleRepo(address newAddress) public
initializeFromOtherConfig
function initializeFromOtherConfig(address _initialConfig, uint256 numbersLength, uint256 addressesLength) public
addToGoList
function addToGoList(address _member) public
Adds a user to go-list
Parameters
Name | Type | Description |
---|---|---|
_member | address | address to add to go-list |
removeFromGoList
function removeFromGoList(address _member) public
removes a user from go-list
Parameters
Name | Type | Description |
---|---|---|
_member | address | address to remove from go-list |
bulkAddToGoList
function bulkAddToGoList(address[] _members) external
adds many users to go-list at once
Parameters
Name | Type | Description |
---|---|---|
_members | address[] | addresses to ad to go-list |
bulkRemoveFromGoList
function bulkRemoveFromGoList(address[] _members) external
removes many users from go-list at once
Parameters
Name | Type | Description |
---|---|---|
_members | address[] | addresses to remove from go-list |
getAddress
function getAddress(uint256 index) public view returns (address)
getNumber
function getNumber(uint256 index) public view returns (uint256)
onlyGoListerRole
modifier onlyGoListerRole()