Closed blackbeard002 closed 7 months ago
Setting the value of config as zero directly instead of packing allowed and expiry in the acceptSwap() thereby negating the call for packData() to save some gas.
config
allowed
expiry
acceptSwap()
packData()
_swaps[swapId].config = 0
Refactor Request
Describe the Refactor Request
Setting the value of
config
as zero directly instead of packingallowed
andexpiry
in theacceptSwap()
thereby negating the call forpackData()
to save some gas.Describe Preferred Solution
_swaps[swapId].config = 0
Describe Alternatives
Related Code
Additional Context