Closed jalextowle closed 1 week ago
Benchmark suite | Current: 1e9ec81cec8d328a4e6b9b2ad628dcd38e787dec | Previous: 7bc914ff4f80a017d14a35d9cb5c5dd99987bd20 | Deviation | Status |
---|---|---|---|---|
addLiquidity: min |
33972 gas |
33937 gas |
0.1031% |
π¨ |
addLiquidity: avg |
159816 gas |
155757 gas |
2.6060% |
π¨ |
addLiquidity: max |
433481 gas |
429262 gas |
0.9828% |
π¨ |
checkpoint: min |
40316 gas |
40316 gas |
0% |
π° |
checkpoint: avg |
144692 gas |
144703 gas |
-0.0076% |
β |
checkpoint: max |
255940 gas |
255940 gas |
0% |
π° |
closeLong: min |
31361 gas |
31361 gas |
0% |
π° |
closeLong: avg |
135636 gas |
135769 gas |
-0.0980% |
β |
closeLong: max |
2539376 gas |
2539376 gas |
0% |
π° |
closeShort: min |
31327 gas |
31327 gas |
0% |
π° |
closeShort: avg |
131219 gas |
131221 gas |
-0.0015% |
β |
closeShort: max |
354112 gas |
271348 gas |
30.5011% |
π¨ |
initialize: min |
31384 gas |
31349 gas |
0.1116% |
π¨ |
initialize: avg |
333482 gas |
333439 gas |
0.0129% |
π¨ |
initialize: max |
400083 gas |
399978 gas |
0.0263% |
π¨ |
openLong: min |
33370 gas |
33370 gas |
0% |
π° |
openLong: avg |
173132 gas |
173218 gas |
-0.0496% |
β |
openLong: max |
334062 gas |
334062 gas |
0% |
π° |
openShort: min |
33936 gas |
33936 gas |
0% |
π° |
openShort: avg |
168388 gas |
168476 gas |
-0.0522% |
β |
openShort: max |
415253 gas |
415110 gas |
0.0344% |
π¨ |
redeemWithdrawalShares: min |
31286 gas |
31251 gas |
0.1120% |
π¨ |
redeemWithdrawalShares: avg |
83898 gas |
75114 gas |
11.6942% |
π¨ |
redeemWithdrawalShares: max |
308668 gas |
305698 gas |
0.9715% |
π¨ |
removeLiquidity: min |
31336 gas |
31301 gas |
0.1118% |
π¨ |
removeLiquidity: avg |
219844 gas |
215048 gas |
2.2302% |
π¨ |
removeLiquidity: max |
409128 gas |
403641 gas |
1.3594% |
π¨ |
This comment was automatically generated by workflow using github-action-benchmark.
Resolved Issues
Addresses https://github.com/spearbit-audits/delv-week-review/issues/16.
Description
Added updates to the weighted spot price to the other LP functions.
Review Checklists
Please check each item before approving the pull request. While going through the checklist, it is recommended to leave comments on items that are referenced in the checklist to make sure that they are reviewed. If there are multiple reviewers, copy the checklists into sections titled
## [Reviewer Name]
. If the PR doesn't touch Solidity, the corresponding checklist can be removed.[[Reviewer Name]]
approve
calls useforceApprove
?transfer
calls usesafeTransfer
?transferFrom
calls usemsg.sender
as thefrom
address?call
,delegatecall
,staticcall
,transfer
,send
)success
boolean checked to handle failed calls?delegatecall
, are there strict access controls on the addresses that can be called? It shouldn't be possible todelegatecall
arbitrary addresses, so the list of possible targets should either be immutable or tightly controlled by an admin.nonReentrant
?payable
functions restricted to avoid stuck ether?Safe
functions are altered, are potential underflows and overflows caught so that a failure flag can be thrown?