Protected
sdkPrivate
#_Optional
message: anyRest
...optionalParams: any[]Private
_calculateCalculate the amount of stEth (collateral) as a balance (not shares) as an 18 decimal BigNumber
Amount of ebtc debt as an 18 decimal BigNumber
Ratio between the stEth balance (collateral NOT in shares) and eBTC from the pricefeed as an 18 decimal BigNumber
The Collateral (stEth Balance) to Debt Ratio (ICR)
Amount of ebtc debt as an 18 decimal BigNumber
Calculate the Collateral (stEth Balance) to Debt Ratio (ICR)
Amount of stEth (balance not shares) as a balance (not shares) in Ether unit
Amount of ebtc debt in Ether unit
Ratio between stEth balance (collateral NOT in shares) and eBTC from the pricefeed in Ether unit
stEth balance in Ether unit
Calculate the amount of debt that can be generated for a given stEth balance and the desired collateral ratio
Amount of stEth (balance not shares) as a balance (not shares) as an 18 decimal BigNumber
Ratio between the stEth balance (collateral NOT in shares) and eBTC from the pricefeed as an 18 decimal BigNumber
The Collateral (stEth Balance) to Debt Ratio (ICR)
Amount of ebtc debt as an 18 decimal BigNumber
Calculate at what stEth-Ebtc ratio the cdp will be liquidated (note: this does not account for fluctions in the stEth share price)
Amount of stEth (balance not shares) as a balance (not shares) as an 18 decimal BigNumber
Amount of ebtc debt as an 18 decimal BigNumber
The ratio at which the cdp will be liquidated as an 18 decimal BigNumber (default: 110% = 1_100_000_000_000_000_000, if recovery mode is on use 125%)
The stEthBtcRatio at which the cdp will be liquidated as an 18 decimal BigNumber
Calculate the stethBalance from the share amount and the stEth share ratio
Amount of stEth in shares (not the stEth balance) in Ether unit
stEth share ratio in Ether unit
stEth balance in smallest
Calculate the steth shares from the steth balance amount and the stEth share ratio
Amount of stEth balance (not the stEth shares) in Ether unit
stEth share ratio in Ether unit
stEth balance in smallest
Generated using TypeDoc
Service exposing functions to do basic math calculations that a frontend would require