Backed: NEAR solvency checks

v0.1.0
io.github.rohan911438/backed Checked 13 hours ago Published 1 month ago

Check if a NEAR protocol holds the tokens it owes, read at one block.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_backing

Read what a NEAR protocol owes (its own accounting view) and what it holds (each token's ft_balance_of) at the same block, so the answer is exact. Use before depositing into a protocol. Works for intents.near, contract.main.burrow.near (Rhea lending) and any contract implementing backed_solvency.

ParameterTypeDescription
target *stringProtocol account, e.g. intents.near
tokens *arrayNEP-141 token contracts, e.g. usdt.tether-token.near
adapterstringHow to read 'owed'. Guessed for intents.near and contract.main.burrow.near; default backed (backed_solvency).

intents_backing_summary

The latest daily scan of every NEP-141 token in NEAR Intents (intents.near): how many are backed, which are under-backed and by how much, and why.

checker_status

What the on-chain Backed checker contract last recorded for a (protocol, token) pair: Healthy, Suspected or Confirmed breach, with owed, held and block.

ParameterTypeDescription
target *string
token *string
checkerstringChecker contract account. Default: the testnet deployment.
networkstringDefault: testnet