blahka44/liquidity-shield-casper — explained in plain English
Analysis updated 2026-05-18
Automatically move a DeFi vault into a protective state when CSPR price drops sharply.
Watch a real time dashboard showing risk scores and recorded on chain transactions.
Study a simple example of an autonomous agent that acts on a blockchain based on price data.
| blahka44/liquidity-shield-casper | burnermcburnface33/amigaemu | chmduquesne/opentopomaps-manager | |
|---|---|---|---|
| Stars | 0 | 0 | — |
| Language | Makefile | Makefile | Makefile |
| Last pushed | — | — | 2022-04-04 |
| Maintenance | — | — | Dormant |
| Setup difficulty | hard | hard | moderate |
| Complexity | 4/5 | 4/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a Casper Testnet account, the casper-client tool, and building a Rust and WASM smart contract before the agent can run.
Liquidity Shield is a buildathon project made for the Casper Agentic Buildathon 2026. It is an automated agent that watches the price of Casper's CSPR token and reacts on its own when the price moves sharply, without a person having to be watching at the time. The problem it addresses is that people providing liquidity in decentralized finance can lose money during a sudden price crash if nobody notices in time to react. The system works in a chain of steps. First it fetches CSPR price data from the CoinGecko API. Then it runs a fixed, non AI calculation that turns the recent price change into a risk score and compares that score against a threshold the operator sets. If the risk score crosses the threshold, the agent automatically signs and sends a transaction to the Casper network that changes the state of a smart contract, for example moving a vault into a protective mode. Every one of these actions is recorded on chain and also shown on a simple dashboard, so there is a visible audit trail of what the agent did and when. To try it, a user builds the smart contract with a make command, deploys its initial state with the casper client tool, starts the agent with a Node.js script, and can open a small local web dashboard to watch transactions and risk scores update in real time. The README includes links to live example transactions already recorded on the Casper Testnet, along with a demo video. The project is built from a Rust and WebAssembly smart contract for on chain state, a Node.js script for observing prices and deciding when to act, and plain HTML, CSS, and JavaScript for the dashboard. The README notes that the guarantee here is limited: the blockchain can confirm the agent behaved consistently with the price feed it received, but the accuracy of that feed still depends on CoinGecko's data being correct.
A buildathon project that watches CSPR token prices and automatically triggers protective smart contract actions on the Casper network when risk crosses a threshold.
Mainly Makefile. The stack also includes Node.js, Rust, WebAssembly.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.