Skip to content

Commit 1ac4c26

Browse files
committed
Final submission
1 parent 88eff75 commit 1ac4c26

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2326
-1295
lines changed

7-defi-devpost/kl_protocol/README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,43 @@ Another feature made available by the LendingPoolManager is liquidation. Liquida
8181

8282

8383

84-
There are two types of liquidation: The manual liquidation, that is available to any user and auto_liquidation that is reserved to admin batch liquidation. Both have different mechanics. Manual liquidation targets a specific collateral that the liquidator wants and provides required loan payment to get the liquidation to happen. On the other end, auto_liquidation analyzes the whole CDP and performs direct asset sales to improve the health factor.
84+
There are two types of liquidation: The manual liquidation, that is available to any user and auto_liquidation that is reserved to admin batch liquidation. Both have different mechanics. Manual liquidation targets a specific collateral that the liquidator wants and provides required loan payment to get the liquidation to happen. On the other end, auto_liquidation analyzes the whole CDP and performs direct asset sales to improve the health factor.
85+
86+
nter image description here](https://res.cloudinary.com/daisvxhyu/image/upload/v1679682535/action_flow_fxh6v4.png)
87+
88+
## Testing
89+
90+
KL Protocol is shipped with a fully function App available to try feature like lending and borrowing. Not all feature from the blueprint are implemented like multiple interns rate scheme. and flash loan to swap debit or collateral. For a compete test of all feature, we create some resim tests script written in Javascript using google ZX library. testing script are in the /simulation forder and can be run using the command:
91+
92+
cd simulation
93+
npm i
94+
npm start
95+
96+
The user interface is a Sveltkit project using the Radix Developper Toolkit to interact with the Radix Betanet.
97+
To get started, navigate to the /frontend folder and run
98+
99+
cd frontend
100+
npm i
101+
nmp run dev
102+
103+
This will spin p a dev server and you will get and home page with tree menu option. Cliec the admin menu this will give you the Dap setup page as show bellow:
104+
105+
![Admin menu for setting app KL Protocol](https://res.cloudinary.com/daisvxhyu/image/upload/v1679684371/Radix/ui_setup.png)
106+
107+
Once the setup complete the admin app will look like the picture bellow. the admin screen also make possible to change price of Faucet asset to help simulate variation on loan heal factors.
108+
109+
![Setup completed](https://res.cloudinary.com/daisvxhyu/image/upload/v1679684371/Radix/ui_setup_completed.png)
110+
111+
From there you can go to the Faucet menu to get some test resources:
112+
113+
![Faucet for test resources](https://res.cloudinary.com/daisvxhyu/image/upload/v1679684370/Radix/faucet.png)
114+
115+
Now we can go to the App menu and start playing with the protocol. For the borrowing feature, you will need to mint a CDP NFT :
116+
117+
![CDP NFT Is required for borring](https://res.cloudinary.com/daisvxhyu/image/upload/v1679684370/Radix/borrowing_first_pages.png)
118+
119+
Some screenshot of the DAPP:
120+
121+
![The BORROW page](https://res.cloudinary.com/daisvxhyu/image/upload/v1679684370/Radix/borrowing.png)
122+
123+
![The LENDING page](https://res.cloudinary.com/daisvxhyu/image/upload/v1679684372/Radix/lending.png)
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Tx ID
2-
829c45f749c4ca86765132e45a4bb6b3b7a2e830775336eb511db97f6e5ac4cb
2+
c18ae6fb1e217d5c17d2f7f5bf445578b64e90887fc58a55ec3f5cda83071899
33
Package address
4-
package_tdx_b_1qy8fdtykc2m0kuprfqy6cxk88r938rr4ty8zyxlcdfxq9srfny
4+
package_tdx_b_1q8c5vknglhcqw7nrg83yrwmrhy69xndpk4ndmnect29s7n56us
55

6-
7-
a58ac3bf64665067c87bcca05a5d6905257f4e70b69ec222e44041e7d603cb85
8-
component_tdx_b_1q25sgetk4q4r4znhpgzj4ypdk8uqxv74edcjh72t7xysg398qd
6+
30844b13b5856810ca7a213d7b7424d43ab22a3b5623b048d0f6a08d8fd23a99
7+
e92b9a78f25c8ae4b884fd2a172e02ae29434d4f0ba5e77dfa70b2261e0e8735

0 commit comments

Comments
 (0)