-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: change the time param in withdraw with an amount test: update tests accordingly * docs: fix * perf: remove redudant assert * Shub's feedback * test: remove redundant lines in withdraw handler test: change token symbols * undeeded imports * test: add getRenormalizedAmount in Utils.sol test: assertions in withdrawMax fuzz test * test: set lower bound for timejump to 0 in fuzz and invariant * remove comment * test: lower bound for rps * refactor: remove corrected time logic (#236) * chore: polish * chore: polish --------- Co-authored-by: smol-ninja <shubhamy2015@gmail.com> Co-authored-by: gavriliumircea <48255669+gavriliumircea@users.noreply.github.com>
- Loading branch information
1 parent
a0dab5b
commit b67f34c
Showing
37 changed files
with
666 additions
and
869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# Benchmarks using 6-decimal asset | ||
# Benchmarks using 6-decimal token | ||
|
||
| Function | Gas Usage | | ||
| ------------------------------- | --------- | | ||
| `adjustRatePerSecond` | 43788 | | ||
| `create` | 113491 | | ||
| `deposit` | 24832 | | ||
| `depositViaBroker` | 21529 | | ||
| `pause` | 9089 | | ||
| `refund` | 11136 | | ||
| `restart` | 6513 | | ||
| `void` | 7963 | | ||
| `withdrawAt (insolvent stream)` | 53210 | | ||
| `withdrawAt (solvent stream)` | 17692 | | ||
| `withdrawMax` | 49012 | | ||
| Function | Gas Usage | | ||
| ----------------------------- | --------- | | ||
| `adjustRatePerSecond` | 44069 | | ||
| `create` | 113829 | | ||
| `deposit` | 25068 | | ||
| `depositViaBroker` | 21858 | | ||
| `pause` | 9371 | | ||
| `refund` | 11514 | | ||
| `restart` | 6456 | | ||
| `void` | 8543 | | ||
| `withdraw (insolvent stream)` | 56632 | | ||
| `withdraw (solvent stream)` | 39046 | | ||
| `withdrawMax` | 51468 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.