Skip to content

Commit

Permalink
fix: compiler version and convert usage in temps
Browse files Browse the repository at this point in the history
  • Loading branch information
skellet0r committed Apr 28, 2021
1 parent 0fbb7de commit 7afaa4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/pool-templates/meta/DepositTemplateMeta.vy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @version ^0.2.8
# @version ^0.2.12
"""
@title "Zap" Depositer for metapool
@author Curve.Fi
Expand Down Expand Up @@ -65,7 +65,7 @@ def __init__(_pool: address, _token: address):
self.base_pool = base_pool

for i in range(N_COINS):
coin: address = CurveMeta(_pool).coins(convert(i, uint256))
coin: address = CurveMeta(_pool).coins(i)
self.coins[i] = coin
# approve coins for infinite transfers
_response: Bytes[32] = raw_call(
Expand Down
4 changes: 2 additions & 2 deletions contracts/pool-templates/meta/SwapTemplateMeta.vy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @version ^0.2.8
# @version ^0.2.12
"""
@title StableSwap
@author Curve.Fi
Expand Down Expand Up @@ -184,7 +184,7 @@ def __init__(
self.base_virtual_price = Curve(_base_pool).get_virtual_price()
self.base_cache_updated = block.timestamp
for i in range(BASE_N_COINS):
base_coin: address = Curve(_base_pool).coins(convert(i, uint256))
base_coin: address = Curve(_base_pool).coins(i)
self.base_coins[i] = base_coin

# approve underlying coins for infinite transfers
Expand Down

0 comments on commit 7afaa4f

Please sign in to comment.