ConfigurationManager
Last updated
Last updated
The ConfigurationManager is the management layer of the protocol; it sets global or specific vault's parameters as a cap, withdraws fee, migration destination, and the vaultController
role for each vault.
Retrieves the value of a parameter set to contract. If the value is not a uint256, you will need to perform encoding/decoding operations
Parameters
Name | Type | Description |
---|---|---|
Returns
Name | Type | Description |
---|---|---|
https://github.com/pods-finance/yield-contracts/blob/main/contracts/configuration/ConfigurationManager.sol#L40
Retrieves the value of a global parameter. If the value is not a uint256, you will need to perform encoding/decoding operations
Parameters
Returns
Retrieves the value of the cap set to a contract. If the value is not a uint256, you will need to perform encoding/decoding operations
Parameters
Returns
Retrieves the value of the destination contract of an original vault.
Parameters
Returns
Set specific parameters to a contract or globally across multiple contracts. Use address(0)
to set a global parameter.
Parameters
Set the cap of a target vault.
Parameters
Sets the allowance to migrate to a vault
address.
Parameters
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
target
address
The contract target address
name
bytes32
The parameter name
_0
uint256
The stored parameter
name
bytes32
The parameter name
_0
uint256
The stored parameter
target
address
The contract target address
_0
uint256
The stored cap
oldVault
address
The origin vault
_0
address
The destination vault
target
address
The contract target address
name
bytes32
The parameter name
value
uint256
The parameter value
target
address
The contract target address
value
uint256
The cap value
oldVault
address
The current vault address
newVault
address
The vault where assets are going to be migrated to