Create a new StableCoinClient.
TODO(keefertaylor): Consider fetching references to contracts in this constructor to avoid duplicate network requests later.
The URL of the node to connect to.
The Network the Node is connected to.
The address of the OvenRegistry
The address of the Minter.
The address of the OvenFactory.
An indexer url to use for querying all ovens. Must be BCD compatible
A TezosToolkit
Deploy a new Oven.
The wallet which will deploy the Oven.
The result of deploying a new Oven.
Retrieve data about all ovens.
A list of all known ovens.
Retrieve information about the interest rates in the system.
The time to calculate the values at. Defaults to the current time.
Interest rate data for the system.
Return the network as a string.
Retrieve the number of ovens in the system.
The number of ovens in the system.
Retrieve the collateralization rate.
A number representing the required collateralization fee with 18 digits of precision.
Retrieve the simple stability fee.
This interest rate is the interest rate applied per period, NOT the APY. Please use getStabilityFeeApy
instead.
A number representing the stability fee per period.
Retrieve the stability fee.
This returns the stability fee as an APY. Note that internally, linear approximation is used, so this number is not always accurate. See stablecoin documentation.
A number representing a percentage fee with 18 decimals of precision.
Retrieve an array of ovens owned by an address.
The address to find Ovens owned by.
A list of Addresses of owned ovens.
Generated using TypeDoc
Controls interaction and data fetching from the Untitled StableCoin System.