Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contracts/pool-templates/a/SwapTemplateA.vy
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def dynamic_fee(i: int128, j: int128) -> uint256:
"""
@notice Return the fee for swapping between `i` and `j`
@param i Index value for the coin to send
@param j Index value of the coin to recieve
@param j Index value of the coin to receive
@return Swap fee expressed as an integer with 1e10 precision
"""
precisions: uint256[N_COINS] = PRECISION_MUL
Expand Down Expand Up @@ -608,7 +608,7 @@ def exchange(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param _dx Amount of `i` being exchanged
@param _min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down Expand Up @@ -653,7 +653,7 @@ def exchange_underlying(i: int128, j: int128, _dx: uint256, _min_dy: uint256) ->
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param _dx Amount of `i` being exchanged
@param _min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
4 changes: 2 additions & 2 deletions contracts/pool-templates/base/SwapTemplateBase.vy
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _A Amplification coefficient multiplied by n * (n - 1)
@param _fee Fee to charge for exchanges
Expand Down Expand Up @@ -449,7 +449,7 @@ def exchange(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param _dx Amount of `i` being exchanged
@param _min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
4 changes: 2 additions & 2 deletions contracts/pool-templates/eth/SwapTemplateEth.vy
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _A Amplification coefficient multiplied by n * (n - 1)
@param _fee Fee to charge for exchanges
Expand Down Expand Up @@ -429,7 +429,7 @@ def exchange(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param _dx Amount of `i` being exchanged
@param _min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
6 changes: 3 additions & 3 deletions contracts/pool-templates/meta/SwapTemplateMeta.vy
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _base_pool Address of the base pool (which will have a virtual price)
@param _A Amplification coefficient multiplied by n * (n - 1)
Expand Down Expand Up @@ -575,7 +575,7 @@ def exchange(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param _dx Amount of `i` being exchanged
@param _min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down Expand Up @@ -642,7 +642,7 @@ def exchange_underlying(i: int128, j: int128, _dx: uint256, _min_dy: uint256) ->
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param _dx Amount of `i` being exchanged
@param _min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
4 changes: 2 additions & 2 deletions contracts/pool-templates/y/SwapTemplateY.vy
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def exchange(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param _dx Amount of `i` being exchanged
@param _min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down Expand Up @@ -605,7 +605,7 @@ def exchange_underlying(i: int128, j: int128, _dx: uint256, _min_dy: uint256) ->
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param _dx Amount of `i` being exchanged
@param _min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
2 changes: 1 addition & 1 deletion contracts/pools/3pool/StableSwap3Pool.vy
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _A Amplification coefficient multiplied by n * (n - 1)
@param _fee Fee to charge for exchanges
Expand Down
6 changes: 3 additions & 3 deletions contracts/pools/aave/StableSwapAave.vy
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def dynamic_fee(i: int128, j: int128) -> uint256:
"""
@notice Return the fee for swapping between `i` and `j`
@param i Index value for the coin to send
@param j Index value of the coin to recieve
@param j Index value of the coin to receive
@return Swap fee expressed as an integer with 1e10 precision
"""
precisions: uint256[N_COINS] = PRECISION_MUL
Expand Down Expand Up @@ -593,7 +593,7 @@ def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand All @@ -616,7 +616,7 @@ def exchange_underlying(i: int128, j: int128, dx: uint256, min_dy: uint256) -> u
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
2 changes: 1 addition & 1 deletion contracts/pools/aeth/StableSwapAETH.vy
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
6 changes: 3 additions & 3 deletions contracts/pools/bbtc/StableSwapBBTC.vy
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _base_pool Address of the base pool (which will have a virtual price)
@param _A Amplification coefficient multiplied by n * (n - 1)
Expand Down Expand Up @@ -553,7 +553,7 @@ def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down Expand Up @@ -598,7 +598,7 @@ def exchange_underlying(i: int128, j: int128, dx: uint256, min_dy: uint256) -> u
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
2 changes: 1 addition & 1 deletion contracts/pools/compound/StableSwapCompound.vy
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def __init__(_coins: address[N_COINS], _underlying_coins: address[N_COINS],
_pool_token: address,
_A: uint256, _fee: uint256):
"""
_coins: Addresses of ERC20 conracts of coins (c-tokens) involved
_coins: Addresses of ERC20 contracts of coins (c-tokens) involved
_underlying_coins: Addresses of plain coins (ERC20)
_pool_token: Address of the token representing LP share
_A: Amplification coefficient multiplied by n * (n - 1)
Expand Down
6 changes: 3 additions & 3 deletions contracts/pools/dusd/StableSwapDUSD.vy
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _base_pool Address of the base pool (which will have a virtual price)
@param _A Amplification coefficient multiplied by n * (n - 1)
Expand Down Expand Up @@ -560,7 +560,7 @@ def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down Expand Up @@ -605,7 +605,7 @@ def exchange_underlying(i: int128, j: int128, dx: uint256, min_dy: uint256) -> u
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
4 changes: 2 additions & 2 deletions contracts/pools/eurs/StableSwapEURS.vy
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _A Amplification coefficient multiplied by n * (n - 1)
@param _fee Fee to charge for exchanges
Expand Down Expand Up @@ -436,7 +436,7 @@ def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
6 changes: 3 additions & 3 deletions contracts/pools/gusd/StableSwapGUSD.vy
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _base_pool Address of the base pool (which will have a virtual price)
@param _A Amplification coefficient multiplied by n * (n - 1)
Expand Down Expand Up @@ -559,7 +559,7 @@ def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down Expand Up @@ -604,7 +604,7 @@ def exchange_underlying(i: int128, j: int128, dx: uint256, min_dy: uint256) -> u
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
2 changes: 1 addition & 1 deletion contracts/pools/hbtc/StableSwapHBTC.vy
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _A Amplification coefficient multiplied by n * (n - 1)
@param _fee Fee to charge for exchanges
Expand Down
6 changes: 3 additions & 3 deletions contracts/pools/husd/StableSwapHUSD.vy
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _base_pool Address of the base pool (which will have a virtual price)
@param _A Amplification coefficient multiplied by n * (n - 1)
Expand Down Expand Up @@ -560,7 +560,7 @@ def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down Expand Up @@ -605,7 +605,7 @@ def exchange_underlying(i: int128, j: int128, dx: uint256, min_dy: uint256) -> u
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
4 changes: 2 additions & 2 deletions contracts/pools/ib/StableSwapIB.vy
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand All @@ -584,7 +584,7 @@ def exchange_underlying(i: int128, j: int128, dx: uint256, min_dy: uint256) -> u
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
4 changes: 2 additions & 2 deletions contracts/pools/link/StableSwapLINK.vy
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _A Amplification coefficient multiplied by n * (n - 1)
@param _fee Fee to charge for exchanges
Expand Down Expand Up @@ -442,7 +442,7 @@ def exchange(i: int128, j: int128, _dx: uint256, _min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param _dx Amount of `i` being exchanged
@param _min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
6 changes: 3 additions & 3 deletions contracts/pools/linkusd/StableSwapLinkUSD.vy
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __init__(
"""
@notice Contract constructor
@param _owner Contract owner address
@param _coins Addresses of ERC20 conracts of coins
@param _coins Addresses of ERC20 contracts of coins
@param _pool_token Address of the token representing LP share
@param _base_pool Address of the base pool (which will have a virtual price)
@param _A Amplification coefficient multiplied by n * (n - 1)
Expand Down Expand Up @@ -559,7 +559,7 @@ def exchange(i: int128, j: int128, dx: uint256, min_dy: uint256) -> uint256:
@notice Perform an exchange between two coins
@dev Index values can be found via the `coins` public getter method
@param i Index value for the coin to send
@param j Index valie of the coin to recieve
@param j Index value of the coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down Expand Up @@ -604,7 +604,7 @@ def exchange_underlying(i: int128, j: int128, dx: uint256, min_dy: uint256) -> u
@notice Perform an exchange between two underlying coins
@dev Index values can be found via the `underlying_coins` public getter method
@param i Index value for the underlying coin to send
@param j Index valie of the underlying coin to recieve
@param j Index value of the underlying coin to receive
@param dx Amount of `i` being exchanged
@param min_dy Minimum amount of `j` to receive
@return Actual amount of `j` received
Expand Down
Loading