Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevincharm/yeet-cash
The vault for your not-so-stablecoins (ETHPrague '22 Winner)
https://github.com/kevincharm/yeet-cash
Last synced: about 5 hours ago
JSON representation
The vault for your not-so-stablecoins (ETHPrague '22 Winner)
- Host: GitHub
- URL: https://github.com/kevincharm/yeet-cash
- Owner: kevincharm
- Created: 2022-06-11T23:38:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-12T09:53:12.000Z (over 2 years ago)
- Last Synced: 2024-04-14T13:46:01.960Z (7 months ago)
- Language: Solidity
- Homepage: https://devpost.com/software/yeet-xsi7qw
- Size: 170 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YEET
When all your other yields dry up and dat fixed 20% APY be lookin too JUICY, minimise your depeg risk by using YEET. YEET is a smart vault that manages your risky stablecoin position by automatically liquidating the position into a safe-haven asset (such as USDC) in the event of a possible depegging scenario.
A YEET vault has two important parameters: liquidation threshold and stop-loss. When the mean price of your risky stablecoin across n rounds of the Chainlink price feed dips below the liquidation threshold, the position becomes liquidatable. In this state, anyone can take this entire vault of the risky stablecoin by exchanging safe-haven assets (e.g. USDC) at the rate of the stop-loss. The liquidatoooor keeps any profit resulting from the price delta between the liquidation threshold and the stop-loss.
Protect your stables from depeg risk, put them in a YEET vault today!
## Running Tests
1. Create an `.env` file using the `.env.example` file as a template.
1. Set the environment variables `MAINNET_RPC_URL` and `MAINNET_PK` in `.env`
1. Invoke `yarn test` to run test scenarios located in `./test`