Closed mcclurejt closed 7 months ago
Benchmark suite | Current: a048083c462cd39f5dfbd0e352c90ee653b15771 | Previous: 46c834d403754cb2c6c572563bccd65634c54aff | Deviation | Status |
---|---|---|---|---|
addLiquidity: min |
33915 gas |
1546 gas |
2093.7257% |
π¨ |
addLiquidity: avg |
145061 gas |
67936 gas |
113.5260% |
π¨ |
addLiquidity: max |
405253 gas |
293159 gas |
38.2366% |
π¨ |
checkpoint: min |
29232 gas |
1182 gas |
2373.0964% |
π¨ |
checkpoint: avg |
104086 gas |
48477 gas |
114.7121% |
π¨ |
checkpoint: max |
211255 gas |
191559 gas |
10.2819% |
π¨ |
closeLong: min |
31428 gas |
1492 gas |
2006.4343% |
π¨ |
closeLong: avg |
132779 gas |
29374 gas |
352.0290% |
π¨ |
closeLong: max |
341737 gas |
152303 gas |
124.3797% |
π¨ |
closeShort: min |
31349 gas |
1494 gas |
1998.3266% |
π¨ |
closeShort: avg |
127813 gas |
33444 gas |
282.1702% |
π¨ |
closeShort: max |
201614 gas |
149156 gas |
35.1699% |
π¨ |
initialize: min |
31283 gas |
1451 gas |
2055.9614% |
π¨ |
initialize: avg |
252987 gas |
213962 gas |
18.2392% |
π¨ |
initialize: max |
322173 gas |
253953 gas |
26.8632% |
π¨ |
openLong: min |
33503 gas |
1499 gas |
2135.0233% |
π¨ |
openLong: avg |
166897 gas |
51658 gas |
223.0806% |
π¨ |
openLong: max |
252525 gas |
185562 gas |
36.0866% |
π¨ |
openShort: min |
33848 gas |
1520 gas |
2126.8421% |
π¨ |
openShort: avg |
169830 gas |
51482 gas |
229.8823% |
π¨ |
openShort: max |
363609 gas |
181325 gas |
100.5289% |
π¨ |
redeemWithdrawalShares: min |
31227 gas |
1488 gas |
1998.5887% |
π¨ |
redeemWithdrawalShares: avg |
63490 gas |
22375 gas |
183.7542% |
π¨ |
redeemWithdrawalShares: max |
160647 gas |
109301 gas |
46.9767% |
π¨ |
removeLiquidity: min |
31323 gas |
1530 gas |
1947.2549% |
π¨ |
removeLiquidity: avg |
219414 gas |
151225 gas |
45.0911% |
π¨ |
removeLiquidity: max |
376714 gas |
325781 gas |
15.6341% |
π¨ |
This comment was automatically generated by workflow using github-action-benchmark.
Resolved Issues
Description
The rounding for fees was previously done to increase the number of values for which the condition was false, however since a true condition results in revert, the rounding had the counterintuitive effect of actually making the check less strict.
By rounding in the opposite direction, we make the fee checks more strict.
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 and/or Rust, the corresponding checklist can be removed.@jalextowle
Solidity
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?@jrhea
Solidity
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?