Skip to content

Commit

Permalink
remove asserts because packed2 values are timestamps so no need to do…
Browse files Browse the repository at this point in the history
… gas consuming checks
  • Loading branch information
bout3fiddy committed Nov 14, 2023
1 parent 2f3f931 commit 52c03cb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contracts/main/CurveTwocryptoOptimized.vy
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,6 @@ def _unpack_3(_packed: uint256) -> uint256[3]:
@pure
@internal
def _pack_2(p1: uint256, p2: uint256) -> uint256:
assert p1 < 2**128
assert p2 < 2**128
return p1 | (p2 << 128)


Expand Down

0 comments on commit 52c03cb

Please sign in to comment.