Skip to content

IDaiUsdsConverter

Git Source

Interface for converting between DAI and USDS tokens

This interface defines the standard for bi-directional conversion between DAI and USDS. Implementations handle the actual conversion logic and rates.

Functions

daiToUsds

Converts DAI tokens to USDS tokens

Converts the specified amount of DAI to USDS for the given user. The conversion rate and mechanism depend on the implementation.

function daiToUsds(address usr, uint256 wad) external;
Parameters
NameTypeDescription
usraddressThe address of the user receiving the converted USDS tokens
waduint256The amount of DAI tokens to convert (in wei/wad units)

usdsToDai

Converts USDS tokens to DAI tokens

Converts the specified amount of USDS to DAI for the given user. The conversion rate and mechanism depend on the implementation.

function usdsToDai(address usr, uint256 wad) external;
Parameters
NameTypeDescription
usraddressThe address of the user receiving the converted DAI tokens
waduint256The amount of USDS tokens to convert (in wei/wad units)