AddressBook
AddressBook serves as a central registry for various addresses within the Dyson Finance ecosystem, managing important addresses and settings for the protocol.
file
Allows the owner to update specific addresses in the contract.
Parameters:
Name | Type | Description |
---|---|---|
name | bytes32 | The name of the address to update. |
value | address | The new address. |
getCanonicalIdOfPair
Retrieves the canonical ID of a pair of tokens.
Parameters:
Name | Type | Description |
---|---|---|
token0 | address | Address of the first token in the pair. |
token1 | address | Address of the second token in the pair. |
Return Values:
Name | Type | Description |
---|---|---|
canonicalId | uint | The canonical ID of the pair. |
setCanonicalIdOfPair
Allows the owner to set the canonical ID for a pair of tokens.
Parameters:
Name | Type | Description |
---|---|---|
token0 | address | Address of the first token in the pair. |
token1 | address | Address of the second token in the pair. |
canonicalId | uint | The new canonical ID for the pair. |
setBribeOfGauge
Allows the owner to set the bribe address for a gauge.
Parameters:
Name | Type | Description |
---|---|---|
gauge | address | Address of the gauge. |
bribe | address | Address of the bribe. |
Last updated