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
bytes32
The name of the address to update.
value
address
The new address.
getCanonicalIdOfPair
Retrieves the canonical ID of a pair of tokens.
Parameters:
token0
address
Address of the first token in the pair.
token1
address
Address of the second token in the pair.
Return Values:
canonicalId
uint
The canonical ID of the pair.
setCanonicalIdOfPair
Allows the owner to set the canonical ID for a pair of tokens.
Parameters:
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:
gauge
address
Address of the gauge.
bribe
address
Address of the bribe.
Last updated