Skip to content

Commit 588fcf0

Browse files
committed
docs: update ERC4626 charts
1 parent 3b0878f commit 588fcf0

File tree

7 files changed

+165
-3
lines changed

7 files changed

+165
-3
lines changed
-173 KB
Binary file not shown.

.gitbook/assets/erc4626-deposit.png

-439 KB
Binary file not shown.

.gitbook/assets/erc4626-deposit.svg

Lines changed: 58 additions & 0 deletions
Loading

.gitbook/assets/erc4626-flow-diagram.svg

Lines changed: 61 additions & 0 deletions
Loading

.gitbook/assets/erc4626-withdraw.png

-330 KB
Binary file not shown.

.gitbook/assets/erc4626-withdraw.svg

Lines changed: 43 additions & 0 deletions
Loading

technical-reference/reference-technical-articles/venus-erc-4626.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ In essence, ERC-4626 makes it easier for users to earn yield on their assets and
3737

3838
## Architecture
3939

40-
<figure><img src="../../.gitbook/assets/erc-4626-flow-diagram.png" alt="Flow of funds related to Prime"><figcaption></figcaption></figure>
40+
<figure><img src="../../.gitbook/assets/erc4626-flow-diagram.svg" alt="Flow of funds related to ERC4626 wrappers"><figcaption></figcaption></figure>
4141

4242
## **VenusERC4626Factory.sol: The Vault Factory**
4343

@@ -256,7 +256,7 @@ function deposit(uint256 assets, address receiver)
256256

257257
**Scenario**: Alice deposits 100 USDC.
258258

259-
<figure><img src="../../.gitbook/assets/erc4626-deposit.png" alt="Flow of funds related to Prime"><figcaption></figcaption></figure>
259+
<figure><img src="../../.gitbook/assets/erc4626-deposit.svg" alt="Flow of funds related to ERC4626 wrapper"><figcaption></figcaption></figure>
260260

261261
#### Result:
262262

@@ -295,7 +295,7 @@ function withdraw(uint256 assets, address receiver, address owner)
295295

296296
**Scenario**: Alice withdraws 50 USDC (after interest accrual).
297297

298-
<figure><img src="../../.gitbook/assets/erc4626-withdraw.png" alt="Flow of funds related to Prime"><figcaption></figcaption></figure>
298+
<figure><img src="../../.gitbook/assets/erc4626-withdraw.svg" alt="Flow of funds related to ERC4626 wrappers"><figcaption></figcaption></figure>
299299

300300
#### Result
301301

0 commit comments

Comments
 (0)