Skip to content

Commit

Permalink
Fixed typo in comments (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunmoon11100 authored and borispovod committed Oct 13, 2022
1 parent ddc4e4a commit 4cc22f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions sources/swap/liquidity_pool.move
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ module liquidswap::liquidity_pool {
/// Because an user usually loans only one coin, yet function allow to loans both coin.
/// * `x_loan` - expected amount of X coins to loan.
/// * `y_loan` - expected amount of Y coins to loan.
/// Returns both loaned X and Y coins: `(Coin<X>, Coin<Y>, Flashloan<X, Y)`.
/// Returns both loaned X and Y coins: `(Coin<X>, Coin<Y>, Flashloan<X, Y>)`.
public fun flashloan<X, Y, Curve>(x_loan: u64, y_loan: u64): (Coin<X>, Coin<Y>, Flashloan<X, Y, Curve>)
acquires LiquidityPool, EventsStore {
assert_no_emergency();
Expand Down Expand Up @@ -400,7 +400,6 @@ module liquidswap::liquidity_pool {
/// * `x_in` - X coins to pay.
/// * `y_in` - Y coins to pay.
/// * `loan` - data about flashloan.
/// Returns both loaned X and Y coins: `(Coin<X>, Coin<Y>, Flashloan<X, Y)`.
public fun pay_flashloan<X, Y, Curve>(
x_in: Coin<X>,
y_in: Coin<Y>,
Expand Down
4 changes: 2 additions & 2 deletions sources/swap/router.move
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ module liquidswap::router {
const ERR_WRONG_RESERVE: u64 = 201;
/// Wrong order of coin parameters.
const ERR_WRONG_COIN_ORDER: u64 = 208;
/// Insuficient amount in Y reserves.
/// Insufficient amount in Y reserves.
const ERR_INSUFFICIENT_Y_AMOUNT: u64 = 202;
/// Insuficient amount in X reserves.
/// Insufficient amount in X reserves.
const ERR_INSUFFICIENT_X_AMOUNT: u64 = 203;
/// Overlimit of X coins to swap.
const ERR_OVERLIMIT_X: u64 = 204;
Expand Down

0 comments on commit 4cc22f9

Please sign in to comment.