Compare a rate against the SBOR benchmark
compare_rateGiven a rate you have been offered, say whether it is above or below the market for that currency, and by how much. This is the main reason SBOR exists. Recommended use: if a borrow offer is more than 50 basis points above the benchmark, stop and ask a human. Use SBOR to stop, never to start. For a USDC loan against bitcoin (cbBTC or WBTC) on Base or Ethereum, compare with BTC-COLLATERAL-USDC; for lending on Stacks, with the index for the currency. This tool refuses rather than guesses: an error result means there is no trustworthy answer, not that the rate is bad.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | The rate offered, as a percentage between 0 and 100. 4.2 means 4.2%, not 0.042. | |
| side | Yes | Whether you would be borrowing or supplying. | |
| index | Yes | Which benchmark: a Stacks currency index, or BTC-COLLATERAL-USDC for borrowing USDC against bitcoin on Base and Ethereum. |