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 |
---|---|---|---|
uint256 | uint256 | 0 | The 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 |
---|---|---|---|
uint256 | uint256 | user | The owner of the bonds |
Returns:
Type | Internal Type | Name | Info |
---|---|---|---|
tuple[] | struct Bond[] | result | List of bonds for the user |
# function cash
view
Gets the cash contract
function cash() external view returns (address);
Returns:
Type | Internal Type | Name | Info |
---|---|---|---|
address | contract IPegToken | 0 | The cash contract |
# function creditAccount
view
Gets the credit account contract
function creditAccount() external view returns (address);
Returns:
Type | Internal Type | Name | Info |
---|---|---|---|
address | contract ICreditAccount | 0 | The credit account contract |
# function manager
view
Gets the manager contract
function manager() external view returns (address);
Returns:
Type | Internal Type | Name | Info |
---|---|---|---|
address | contract Manager | 0 | The manager contract |
# function totalBalance
view
Gets the total balance
function totalBalance() external view returns (uint256);
Returns:
Type | Internal Type | Name | Info |
---|---|---|---|
uint256 | uint256 | 0 | The total balance |