Closed jalextowle closed 3 months ago
Totals | |
---|---|
Change from base Build 9554961305: | -0.008% |
Covered Lines: | 1963 |
Relevant Lines: | 2131 |
Benchmark suite | Current: 9074688c2e1e68ca93cbae49bb0a7a11983e7bbf | Previous: e5525e96fea5bc61e0eec7fe694049aa6722aa1c | Deviation | Status |
---|---|---|---|---|
addLiquidity: min |
33937 gas |
33937 gas |
0% |
π° |
addLiquidity: avg |
156439 gas |
155877 gas |
0.3605% |
π¨ |
addLiquidity: max |
429527 gas |
429437 gas |
0.0210% |
π¨ |
checkpoint: min |
40316 gas |
40316 gas |
0% |
π° |
checkpoint: avg |
144724 gas |
144636 gas |
0.0608% |
π¨ |
checkpoint: max |
255931 gas |
255830 gas |
0.0395% |
π¨ |
closeLong: min |
31361 gas |
31361 gas |
0% |
π° |
closeLong: avg |
135914 gas |
136439 gas |
-0.3848% |
β |
closeLong: max |
2539376 gas |
2621435 gas |
-3.1303% |
β |
closeShort: min |
31327 gas |
31327 gas |
0% |
π° |
closeShort: avg |
131189 gas |
132305 gas |
-0.8435% |
β |
closeShort: max |
400823 gas |
272530 gas |
47.0748% |
π¨ |
initialize: min |
31349 gas |
31349 gas |
0% |
π° |
initialize: avg |
333397 gas |
333352 gas |
0.0135% |
π¨ |
initialize: max |
400023 gas |
399922 gas |
0.0253% |
π¨ |
openLong: min |
33370 gas |
33370 gas |
0% |
π° |
openLong: avg |
173171 gas |
174248 gas |
-0.6181% |
β |
openLong: max |
334107 gas |
335241 gas |
-0.3383% |
β |
openShort: min |
33936 gas |
33936 gas |
0% |
π° |
openShort: avg |
168493 gas |
168925 gas |
-0.2557% |
β |
openShort: max |
415527 gas |
415870 gas |
-0.0825% |
β |
redeemWithdrawalShares: min |
31251 gas |
31251 gas |
0% |
π° |
redeemWithdrawalShares: avg |
74809 gas |
75830 gas |
-1.3464% |
β |
redeemWithdrawalShares: max |
305734 gas |
305633 gas |
0.0330% |
π¨ |
removeLiquidity: min |
31301 gas |
31301 gas |
0% |
π° |
removeLiquidity: avg |
215481 gas |
214933 gas |
0.2550% |
π¨ |
removeLiquidity: max |
404194 gas |
404194 gas |
0% |
π° |
This comment was automatically generated by workflow using github-action-benchmark.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 9554961305: | 0.07% |
Covered Lines: | 1971 |
Relevant Lines: | 2138 |
Resolved Issues
Fixes: https://github.com/spearbit-audits/delv-week-review/issues/11
Description
This PR simplifies
_applyCheckpoint
.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?