Skip to content

Commit

Permalink
Merge pull request #433 from oceanprotocol/bug/pool_typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
kremalicious authored Oct 30, 2020
2 parents bf334ce + 3c43bb0 commit c410f2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/balancer/Pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ export class Pool extends PoolFactory {
const gasLimitDefault = this.GASLIMIT_DEFAULT
let estGas
try {
estGas = await await pool.methods
estGas = await pool.methods
.joinPool(this.web3.utils.toWei(poolAmountOut), weiMaxAmountsIn)
.estimateGas((err, estGas) => (err ? gasLimitDefault : estGas))
} catch (e) {
Expand Down Expand Up @@ -706,7 +706,7 @@ export class Pool extends PoolFactory {
const gasLimitDefault = this.GASLIMIT_DEFAULT
let estGas
try {
estGas = await await pool.methods
estGas = await pool.methods
.exitPool(this.web3.utils.toWei(poolAmountIn), weiMinAmountsOut)
.estimateGas((err, estGas) => (err ? gasLimitDefault : estGas))
} catch (e) {
Expand Down Expand Up @@ -745,7 +745,7 @@ export class Pool extends PoolFactory {
const gasLimitDefault = this.GASLIMIT_DEFAULT
let estGas
try {
estGas = await await pool.methods
estGas = await pool.methods
.joinswapExternAmountIn(
tokenIn,
this.web3.utils.toWei(tokenAmountIn),
Expand Down Expand Up @@ -797,7 +797,7 @@ export class Pool extends PoolFactory {
const gasLimitDefault = this.GASLIMIT_DEFAULT
let estGas
try {
estGas = await await pool.methods
estGas = await pool.methods
.joinswapPoolAmountOut(
tokenIn,
this.web3.utils.toWei(poolAmountOut),
Expand Down Expand Up @@ -848,7 +848,7 @@ export class Pool extends PoolFactory {
const gasLimitDefault = this.GASLIMIT_DEFAULT
let estGas
try {
estGas = await await pool.methods
estGas = await pool.methods
.exitswapPoolAmountIn(
tokenOut,
this.web3.utils.toWei(poolAmountIn),
Expand Down

0 comments on commit c410f2f

Please sign in to comment.