Closed jalextowle closed 2 months ago
Totals | |
---|---|
Change from base Build 8933353219: | 0.0% |
Covered Lines: | 1833 |
Relevant Lines: | 1966 |
Benchmark suite | Current: 8545bb75382a731aa463549fc99f61e9124c184f | Previous: fee327731672c92ce71cc350a996016a30c5a617 | Deviation | Status |
---|---|---|---|---|
addLiquidity: min |
33827 gas |
33827 gas |
0% |
š° |
addLiquidity: avg |
155879 gas |
156220 gas |
-0.2183% |
ā |
addLiquidity: max |
428439 gas |
428439 gas |
0% |
š° |
checkpoint: min |
40270 gas |
40270 gas |
0% |
š° |
checkpoint: avg |
142302 gas |
142275 gas |
0.0190% |
šØ |
checkpoint: max |
253402 gas |
253402 gas |
0% |
š° |
closeLong: min |
31361 gas |
31361 gas |
0% |
š° |
closeLong: avg |
135168 gas |
135375 gas |
-0.1529% |
ā |
closeLong: max |
2625774 gas |
2625774 gas |
0% |
š° |
closeShort: min |
31349 gas |
31349 gas |
0% |
š° |
closeShort: avg |
131549 gas |
131559 gas |
-0.0076% |
ā |
closeShort: max |
262932 gas |
401793 gas |
-34.5603% |
ā |
initialize: min |
31371 gas |
31371 gas |
0% |
š° |
initialize: avg |
330371 gas |
330281 gas |
0.0272% |
šØ |
initialize: max |
396281 gas |
396281 gas |
0% |
š° |
openLong: min |
33370 gas |
33370 gas |
0% |
š° |
openLong: avg |
173306 gas |
173566 gas |
-0.1498% |
ā |
openLong: max |
306679 gas |
306679 gas |
0% |
š° |
openShort: min |
33936 gas |
33936 gas |
0% |
š° |
openShort: avg |
168018 gas |
167896 gas |
0.0727% |
šØ |
openShort: max |
415379 gas |
414945 gas |
0.1046% |
šØ |
redeemWithdrawalShares: min |
31251 gas |
31251 gas |
0% |
š° |
redeemWithdrawalShares: avg |
74660 gas |
74650 gas |
0.0134% |
šØ |
redeemWithdrawalShares: max |
209762 gas |
209762 gas |
0% |
š° |
removeLiquidity: min |
31301 gas |
31301 gas |
0% |
š° |
removeLiquidity: avg |
208895 gas |
208656 gas |
0.1145% |
šØ |
removeLiquidity: max |
403397 gas |
403574 gas |
-0.0439% |
ā |
This comment was automatically generated by workflow using github-action-benchmark.
Description
This PR makes the
maxMintAmount
mutable and adds an unrestricted flow for minting. This will fix the problems that we've seen on testnet with the sDAI vault.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.[[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?