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.

function file(
    bytes32 name, 
    address value) external

Parameters:

NameTypeDescription

name

bytes32

The name of the address to update.

value

address

The new address.

getCanonicalIdOfPair

Retrieves the canonical ID of a pair of tokens.

function getCanonicalIdOfPair(
    address token0, 
    address token1) external view returns (uint256)

Parameters:

NameTypeDescription

token0

address

Address of the first token in the pair.

token1

address

Address of the second token in the pair.

Return Values:

NameTypeDescription

canonicalId

uint

The canonical ID of the pair.

setCanonicalIdOfPair

Allows the owner to set the canonical ID for a pair of tokens.

function setCanonicalIdOfPair(
    address token0, 
    address token1, 
    uint256 canonicalId) external

Parameters:

NameTypeDescription

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.

function setBribeOfGauge(
    address gauge, 
    address bribe) external

Parameters:

NameTypeDescription

gauge

address

Address of the gauge.

bribe

address

Address of the bribe.

Last updated