Create a new OvenClient.
The URL of the node to connect to.
The wallet which will interact with this Oven.
The address of the oven.
The stable coin client
The harbinger price oracle client
A TezosToolkit
Borrow tokens against an Oven's collateral.
The number of tokens to borrow.
The operation hash.
Deposit XTZ into the Oven.
The amount of XTZ to deposit, specified in mutez.
The operation hash.
Retrieve the baker for the oven.
The baker for the oven.
Get the balance of the oven.
The oven balance in mutez.
Retrieve the number of tokens borrowed against the oven.
NOTE: This method does NOT include stability fees. Please see:
getStabilityFees
and getTotalOutstandingTokens
.
The amount of tokens borrowed.
Retrieve the utilization of collateral in the oven.
This number represents how much of the user's maximum borrow limit is used. If the number is greater than 1, the user may be liquidated.
Mathematically, this is defined as: collateral utilization = (amount borrowed) / (amount you can borrow) collateral utilization = = (borrowed kUSD) / (amount of XTZ in Oven * Price of XTZ / collateral requirement)
The collateral utilization ratio as an integer with 18 digits of precision (ex. 80% is represented as 800_000_000_000_000_000)
Retrieve the collateralization ratio of the oven.
The collateralization ratio as a shard.
Retrieve the owner of the oven.
The address which owns the oven.
Retrieve the number of tokens owed in stability fees against the oven.
The time to calculate the values at. Defaults to the current time.
The pre-fetched oven storage
Interest rate data for the system.
Retrieve the total number of tokens outstanding on the vault.
This method includes the stability fees and borrowed tokens. For individual
breakdowns, see getStabilityFees
and getBorrowedTokens
.
The time to calculate the values at. Defaults to the current time.
The pre-fetched oven storage
The amount of tokens owed in stability fees.
Invoke a method in the oven contract.
The entry point to invoke.
The arguments to send with the invocation.
The amount of XTZ to send with the operation, specified in mutez.
The operation hash.
Query if the Oven is liquidated.
A boolean representing the liquidation state.
Liquidate an Oven.
The operation hash.
Repay borrowed tokens.
The number of tokens to repay.
The operation hash.
Set the baker of the oven.
The baker for the oven.
The operation hash
Withdraw XTZ from the Oven.
The amount of XTZ to withdraw, specified in mutez.
The operation hash.
Generated using TypeDoc
Controls interaction with an Oven.