|
|
1 年之前 | |
|---|---|---|
| .. | ||
| contracts | 2c599bd821 feat(target_chains/ethereum): remove getPrice from IPyth (#1811) | 1 年之前 |
| lib | 0735cdb975 feat(express_relay): Sample protocol and monitor (#1374) | 1 年之前 |
| src | 53521aa36f feat: Update sdks to use svm opportunities (#2009) | 1 年之前 |
| .eslintrc.js | 0735cdb975 feat(express_relay): Sample protocol and monitor (#1374) | 1 年之前 |
| .gitignore | 0735cdb975 feat(express_relay): Sample protocol and monitor (#1374) | 1 年之前 |
| README.md | 0735cdb975 feat(express_relay): Sample protocol and monitor (#1374) | 1 年之前 |
| foundry.toml | 0735cdb975 feat(express_relay): Sample protocol and monitor (#1374) | 1 年之前 |
| package.json | e08052c2c4 feat: set up turborepo | 1 年之前 |
| remappings.txt | 0735cdb975 feat(express_relay): Sample protocol and monitor (#1374) | 1 年之前 |
| tsconfig.json | 0735cdb975 feat(express_relay): Sample protocol and monitor (#1374) | 1 年之前 |
EasyLend is a simplified lending protocol that uses Express Relay for avoiding value leakage on liquidations. It uses Pyth price feeds to calculate the asset values and the liquidation thresholds.
This project illustrates how to use the Express Relay SDK for contract integration and publishing opportunities.
The contracts are located in the contracts directory. The EasyLend.sol file contains the main contract logic.
The protocol can allow creation of undercollateralized vaults that are liquidatable upon creation. This is solely
for ease of testing and demonstration purposes.
The script in src/monitor.ts is used to monitor the vaults health and publish the liquidation opportunities: