Private
borrowerPrivate
cdpPrivate
cdpPrivate
hintProtected
sdkPrivate
sortedPrivate
#_Optional
message: anyRest
...optionalParams: any[]Get hint transaction paramters. collateralAmount and borrowAmount in Ether unit
Upper and lower hints to use against cdp manager operations
Retrieve information for a single cdp. This includes unrealized collateral and debt changes to the cdp.
id of the cdp to get data for
Optional
overrides: OverridesGet cdp paramter overrides
Cdp info related to the requested id
Read entire debt and coll for a given CDP
id of the cdp to get data for
Optional
overrides: OverridesGet total collateral read overrides
Total system collateral
Returns the current minumum collateral ratio to open a CDP in the current system's state
Optional
overrides: OverridesGet minimum collateral ratio read overrides
Minimum collateral ratio required for a cdp to be opened in Ether unit
Returns the current minumum collateral amount in stEth balance (not shares) as 18 decimal BigNumber to open a CDP in the current system's state
Optional
overrides: OverridesGet minimum collateral amount read overrides
Minimum collateral amount in stEth balance (not shares) as 18 decimal BigNumber required for a cdp to be opened
Returns array of cdpIds that belong to the requested address
Request address to get cdps for
Optional
overrides: OverridesGet owned cdps override parameters
List of cdpIds for the cdp that are owned by the requested address
Obtain redemption hints for amount of eBTC redeemed
Redemption hint read paramters
Select parameters required for submitting redemptions
Returns the Staking reward split of the stEth currently in a CDP. This value is how much % in basis points the protocol takes (Example: 6000 = 60% of staking rewards taken by the protocol)
Optional
overrides: OverridesGet staking reward split read overrides
Staking reward split of the stEth in a CDP. This value is how much % in basis points the protocol takes (Example: 6000 = 60% of staking rewards taken by the protocol)
Generated using TypeDoc
Obtain approximate hints for a proposed amount of collateral and borrow
Implementation inspired by the following from liquity: https://github.com/liquity/dev/blob/main/packages/contracts/utils/hintExamples.js#L25-L58