BondGettersFacet

# contract BondGettersFacet

is

BondBase

IBondGetters

# function bondDuration

view

Gets the bond duration

function bondDuration() external view returns (uint256);

Returns:

Type
Internal Type
Name
Info
uint256uint2560The bond duration in seconds
# function bonds

view

Gets all the bonds for a user

function bonds(uint256 user) external view returns (tuple[] result);

Arguments:

Type
Internal Type
Name
Info
uint256uint256userThe owner of the bonds

Returns:

Type
Internal Type
Name
Info
tuple[]struct Bond[]resultList of bonds for the user
# function cash

view

Gets the cash contract

function cash() external view returns (address);

Returns:

Type
Internal Type
Name
Info
addresscontract IPegToken0The cash contract
# function creditAccount

view

Gets the credit account contract

function creditAccount() external view returns (address);

Returns:

Type
Internal Type
Name
Info
addresscontract ICreditAccount0The credit account contract
# function manager

view

Gets the manager contract

function manager() external view returns (address);

Returns:

Type
Internal Type
Name
Info
addresscontract Manager0The manager contract
# function totalBalance

view

Gets the total balance

function totalBalance() external view returns (uint256);

Returns:

Type
Internal Type
Name
Info
uint256uint2560The total balance