Skip to content

Commit

Permalink
Move diagrams next to the example
Browse files Browse the repository at this point in the history
  • Loading branch information
JustynaBroniszewska committed May 14, 2024
1 parent c1ab334 commit bdfbd7b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ When you use Multicall, first you need to ask for user's balance, then you can c
const redeemedAmount = callMulticall(IERC4626, 'previewRedeem', userBalance/2); // redeemedAmount will be loaded in the second multicall's call
```

![image](./docs/image/Multicall-sequence.png)

With BytecodeCaller you can get all the information in a single call, in the same block.

```solidity
Expand All @@ -92,10 +94,6 @@ contract SavingsDaiReader {
const { balance, redeemedAmount } = callBytecodecaller(SavingsDaiReader, 'read', userAddress);
```

You can see the difference between those two in the sequence diagrams.

![image](./docs/image/Multicall-sequence.png)

![image](./docs/image/Bytecodecaller-sequence.png)


Expand Down

0 comments on commit bdfbd7b

Please sign in to comment.