Closed jalextowle closed 5 months ago
Benchmark suite | Current: ce05df7d432e90a7d351cfbc35185c383cc1203f | Previous: 78a1b5959270a1ea5d10fbee8be2019bde04e919 | Deviation | Status |
---|---|---|---|---|
addLiquidity: min |
33893 gas |
33893 gas |
0% |
🟰 |
addLiquidity: avg |
144606 gas |
144492 gas |
0.0789% |
🚨 |
addLiquidity: max |
428319 gas |
428319 gas |
0% |
🟰 |
checkpoint: min |
40220 gas |
40220 gas |
0% |
🟰 |
checkpoint: avg |
104099 gas |
104036 gas |
0.0606% |
🚨 |
checkpoint: max |
212154 gas |
212154 gas |
0% |
🟰 |
closeLong: min |
31517 gas |
31517 gas |
0% |
🟰 |
closeLong: avg |
138574 gas |
138644 gas |
-0.0505% |
✅ |
closeLong: max |
2640435 gas |
2640435 gas |
0% |
🟰 |
closeShort: min |
31394 gas |
31394 gas |
0% |
🟰 |
closeShort: avg |
132951 gas |
132896 gas |
0.0414% |
🚨 |
closeShort: max |
227565 gas |
227553 gas |
0.0053% |
🚨 |
initialize: min |
31305 gas |
31305 gas |
0% |
🟰 |
initialize: avg |
253637 gas |
253636 gas |
0.0004% |
🚨 |
initialize: max |
322898 gas |
322760 gas |
0.0428% |
🚨 |
openLong: min |
33437 gas |
33437 gas |
0% |
🟰 |
openLong: avg |
167331 gas |
166991 gas |
0.2036% |
🚨 |
openLong: max |
253057 gas |
253057 gas |
0% |
🟰 |
openShort: min |
33959 gas |
33959 gas |
0% |
🟰 |
openShort: avg |
170204 gas |
170515 gas |
-0.1824% |
✅ |
openShort: max |
385545 gas |
385545 gas |
0% |
🟰 |
redeemWithdrawalShares: min |
31227 gas |
31227 gas |
0% |
🟰 |
redeemWithdrawalShares: avg |
61974 gas |
62052 gas |
-0.1257% |
✅ |
redeemWithdrawalShares: max |
167572 gas |
167572 gas |
0% |
🟰 |
removeLiquidity: min |
31191 gas |
31191 gas |
0% |
🟰 |
removeLiquidity: avg |
223272 gas |
223882 gas |
-0.2725% |
✅ |
removeLiquidity: max |
398887 gas |
398863 gas |
0.0060% |
🚨 |
This comment was automatically generated by workflow using github-action-benchmark.
Resolved Issues
Fixes: #973.
Description
Adds
name
andversion
functions to each of the major contract types.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.@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?@mcclurejt
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?