Skip to content

Commit

Permalink
~~
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z committed Aug 9, 2024
1 parent 597a3dc commit a71d09b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ IETest:testCommandSendETHRawAddrPrecisePercent() (gas: 79648)
IETest:testCommandSendUSDCRawAddr() (gas: 91856)
IETest:testCommandSendUSDCRawAddr100Percent() (gas: 95371)
IETest:testCommandSendUSDCRawAddr50Percent() (gas: 120623)
IETest:testCommandStakeETH() (gas: 145671)
IETest:testCommandSwapAllETH() (gas: 147104)
IETest:testCommandSwapAllETHSend() (gas: 169101)
IETest:testCommandSwapDAI() (gas: 138684)
IETest:testCommandSwapDAI100Percent() (gas: 109845)
IETest:testCommandSwapDAI50Percent() (gas: 134909)
IETest:testCommandSwapDAIExactOut() (gas: 157206)
IETest:testCommandSwapDAIExactOutSendETH() (gas: 201891)
IETest:testCommandSwapDAIExactOutSendWETH() (gas: 200470)
IETest:testCommandSwapDAIMinOut() (gas: 159193)
IETest:testCommandSwapDAIMinOutAll() (gas: 8686961)
IETest:testCommandSwapDAIMinOutPercentage() (gas: 8687463)
IETest:testCommandSwapDAIPercentageExactOutSendUSDC() (gas: 206296)
IETest:testCommandSwapETH() (gas: 153548)
IETest:testCommandSwapForETH() (gas: 145655)
IETest:testCommandSwapUSDC() (gas: 168429)
IETest:testCommandSwapUSDC50Percent() (gas: 153492)
IETest:testCommandSwapUSDCForWBTC() (gas: 192521)
IETest:testDeploy() (gas: 3923895)
IETest:testCommandStakeETH() (gas: 145693)
IETest:testCommandSwapAllETH() (gas: 146978)
IETest:testCommandSwapAllETHSend() (gas: 168975)
IETest:testCommandSwapDAI() (gas: 129984)
IETest:testCommandSwapDAI100Percent() (gas: 109889)
IETest:testCommandSwapDAI50Percent() (gas: 134915)
IETest:testCommandSwapDAIExactOut() (gas: 157182)
IETest:testCommandSwapDAIExactOutSendETH() (gas: 201867)
IETest:testCommandSwapDAIExactOutSendWETH() (gas: 200446)
IETest:testCommandSwapDAIMinOut() (gas: 159231)
IETest:testCommandSwapDAIMinOutAll() (gas: 8446844)
IETest:testCommandSwapDAIMinOutPercentage() (gas: 8447346)
IETest:testCommandSwapDAIPercentageExactOutSendUSDC() (gas: 206302)
IETest:testCommandSwapETH() (gas: 153532)
IETest:testCommandSwapForETH() (gas: 137192)
IETest:testCommandSwapUSDC() (gas: 168431)
IETest:testCommandSwapUSDC50Percent() (gas: 153500)
IETest:testCommandSwapUSDCForWBTC() (gas: 192495)
IETest:testDeploy() (gas: 3875145)
IETest:testFailCommandSendETHRawAddr1000Percent() (gas: 76740)
IETest:testPreviewCommandSendDecimals() (gas: 121286)
IETest:testPreviewCommandSendUSDC() (gas: 61575)
Expand Down
2 changes: 1 addition & 1 deletion src/IE.sol
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ contract IE {
function _isNumber(bytes memory s) internal pure virtual returns (bool) {
uint256 len = s.length;
if (len == 0) return false;
if (len == 3 && s[0] == "a" && s[1] == "l" && s[2] == "l") return true;
if (bytes32(s) == "all") return true;

// Early exit for single digit.
if (len == 1) return (s[0] >= 0x30 && s[0] <= 0x39);
Expand Down

0 comments on commit a71d09b

Please sign in to comment.