From e15c3d32c2335c18207343fde59df99e44b7302a Mon Sep 17 00:00:00 2001 From: Tyler Sorensen Date: Mon, 22 Apr 2019 15:50:33 -0400 Subject: [PATCH] weth peth currency unit default update (#104) --- src/eth/tokens/PethToken.js | 4 ++-- src/eth/tokens/WethToken.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eth/tokens/PethToken.js b/src/eth/tokens/PethToken.js index b5fa08c1f..609aaf7ed 100644 --- a/src/eth/tokens/PethToken.js +++ b/src/eth/tokens/PethToken.js @@ -1,5 +1,5 @@ import Erc20Token from './Erc20Token'; -import { WETH } from '../Currency'; +import { WETH, PETH } from '../Currency'; export default class PethToken extends Erc20Token { constructor(contract, web3Service, tub) { @@ -12,7 +12,7 @@ export default class PethToken extends Erc20Token { return this._tub.join(value, { promise }); } - exit(amount, { unit = WETH, promise } = {}) { + exit(amount, { unit = PETH, promise } = {}) { const value = this._valueForContract(amount, unit); return this._tub.exit(value, { promise }); } diff --git a/src/eth/tokens/WethToken.js b/src/eth/tokens/WethToken.js index ce2e7a7fa..147c525ad 100644 --- a/src/eth/tokens/WethToken.js +++ b/src/eth/tokens/WethToken.js @@ -1,5 +1,5 @@ import Erc20Token from './Erc20Token'; -import { ETH } from '../Currency'; +import { ETH, WETH } from '../Currency'; export default class WethToken extends Erc20Token { constructor(contract, web3Service, decimals) { @@ -17,7 +17,7 @@ export default class WethToken extends Erc20Token { }); } - withdraw(amount, { unit = ETH, ...options } = {}) { + withdraw(amount, { unit = WETH, ...options } = {}) { const value = this._valueForContract(amount, unit); return this._contract.withdraw(value, options); }