-
Notifications
You must be signed in to change notification settings - Fork 50
fix: gas tests with interest accrual (vs dev) #1190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
yan-man
wants to merge
12
commits into
dev
Choose a base branch
from
fix/gas-tests
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
86cfea1
test: spoke ops
yan-man f190bb1
fix: other spoke ops
yan-man 2f74af0
fix: skips in other gas snapshots
yan-man c15cfbf
fix: add initial debt with interest accrual
yan-man e4b1b56
fix: add missing skiptime
yan-man 36cd23b
fix: skipTime
yan-man 83f2818
fix: rm unneeded skips
yan-man b78791e
fix: skip
yan-man b7b6ed9
fix: skip in gas tests
yan-man 2277927
chore: gas snapshot
yan-man a45d7f7
Merge branch 'dev' into fix/gas-tests
yan-man d920381
chore: CI fuzz runs
yan-man File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,8 +1,8 @@ | ||
| { | ||
| "borrowNative": "228612", | ||
| "repayNative": "166405", | ||
| "supplyAsCollateralNative": "160067", | ||
| "supplyNative": "135727", | ||
| "withdrawNative: full": "125540", | ||
| "withdrawNative: partial": "136724" | ||
| "borrowNative": "232193", | ||
| "repayNative": "170450", | ||
| "supplyAsCollateralNative": "164529", | ||
| "supplyNative": "139296", | ||
| "withdrawNative: full": "129261", | ||
| "withdrawNative: partial": "141376" | ||
| } |
This file contains hidden or 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,10 +1,10 @@ | ||
| { | ||
| "borrowWithSig": "213845", | ||
| "repayWithSig": "186677", | ||
| "borrowWithSig": "217248", | ||
| "repayWithSig": "190710", | ||
| "setSelfAsUserPositionManagerWithSig": "75385", | ||
| "setUsingAsCollateralWithSig": "85365", | ||
| "supplyWithSig": "151959", | ||
| "updateUserDynamicConfigWithSig": "63098", | ||
| "updateUserRiskPremiumWithSig": "62068", | ||
| "withdrawWithSig": "130794" | ||
| "setUsingAsCollateralWithSig": "58546", | ||
| "supplyWithSig": "157582", | ||
| "updateUserDynamicConfigWithSig": "101569", | ||
| "updateUserRiskPremiumWithSig": "100406", | ||
| "withdrawWithSig": "178777" | ||
| } |
This file contains hidden or 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,7 +1,7 @@ | ||
| { | ||
| "getUserAccountData: supplies: 0, borrows: 0": "12992", | ||
| "getUserAccountData: supplies: 1, borrows: 0": "49404", | ||
| "getUserAccountData: supplies: 2, borrows: 0": "81080", | ||
| "getUserAccountData: supplies: 1, borrows: 0": "49594", | ||
| "getUserAccountData: supplies: 2, borrows: 0": "81460", | ||
| "getUserAccountData: supplies: 2, borrows: 1": "101509", | ||
| "getUserAccountData: supplies: 2, borrows: 2": "120769" | ||
| "getUserAccountData: supplies: 2, borrows: 2": "125803" | ||
| } |
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i kinda don't agree w the premise of the pr, it was discussed before as well and the existing tests found a balance to the average user experience
this makes it for the unlikely worst case, ie only the first user in a block will experience this, every other user won't. for debugging & analysis i 100% agree this is the way to go but not sure overall about the goal. wdyt
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't the average user experience involve an accrue within each action? I think it's less likely that a user would interact at the same block as another, but perhaps not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
depends on what we deem as the "canonical" user experience. Was discussing with Cheyenne, I feel like the user action with accrual included is that. It's kind of a ceiling vs floor gas cost.
but when we're looking at mintFeeShares, we can't evaluate it properly unless it includes an accrual action. At the moment it's simply not consistent in any way. I don't think it's a balance for avg UX, it's just kind of haphazard imo atm