Rates
The GraphQL queries that can be performed on the Rates ADO.
Response Interface
queryPayments
Queries a rates contract for its stored rate info
Name | Type | Description |
---|---|---|
| string | The address of the rates contract to get the rates for. |
QueryRatesPayments
QueryRatesPaymentsResponse
Name | Type | Description |
---|---|---|
| RateInfo[] | Vector of RateInfo containing information on the rates applied by the contract. |
RateInfo
Name | Type | Description |
---|---|---|
| string | Description for the rate. |
| boolean | An indicator to whether the rate being taken is tax. If tax, |
| The type of rate being taken. | |
| The addresses to receive the |
Rate
The Rate can be one of the three option seen above:
Flat: A fixed amount to be taken (Coin).
Percent: A percentage based rate.
External: This refers to a rate that is saved in a primitive contract.
Last updated