From 89bf63e09ff0ecd656a60938c2b85f295d25fe7e Mon Sep 17 00:00:00 2001 From: Facundo De Lorenzo Date: Fri, 16 Aug 2024 18:45:50 -0300 Subject: [PATCH] update md2 --- cool-root-doc.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cool-root-doc.md b/cool-root-doc.md index 21ea983..aeac6ee 100644 --- a/cool-root-doc.md +++ b/cool-root-doc.md @@ -29,26 +29,27 @@ graph TD end ``` ## Main sequence diagram -```sequenceDiagram +``` +sequenceDiagram participant User participant LendingPool (L2Pool) participant AToken participant DebtToken participant AaveOracle - User ->> LendingPool (L2Pool): deposit(asset, amount) + User->>LendingPool (L2Pool): deposit(asset, amount) LendingPool (L2Pool) ->> AToken: mint(amount, user) - User ->> LendingPool (L2Pool): borrow(asset, amount) + User->>LendingPool (L2Pool): borrow(asset, amount) LendingPool (L2Pool) ->> AaveOracle: getPrice(asset) AaveOracle -->> LendingPool (L2Pool): assetPrice LendingPool (L2Pool) ->> DebtToken: mint(amount, user) - User ->> LendingPool (L2Pool): repay(asset, amount) + User->>LendingPool (L2Pool): repay(asset, amount) LendingPool (L2Pool) ->> DebtToken: burn(amount, user) - User ->> LendingPool (L2Pool): withdraw(asset, amount) - LendingPool (L2Pool) ->> AToken: burn(amount, user) + User->>LendingPool (L2Pool): withdraw(asset, amount) + LendingPool (L2Pool)->>AToken: burn(amount, user) ``` ## Deploy Scripts