Skip to content

Commit

Permalink
update md2
Browse files Browse the repository at this point in the history
  • Loading branch information
FacuDeLorenzo committed Aug 16, 2024
1 parent ba6eb7f commit 89bf63e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cool-root-doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89bf63e

Please sign in to comment.