From 4cdd5c75383c1d535f04d92f7a1bd999a063db7c Mon Sep 17 00:00:00 2001 From: Theo Date: Wed, 23 Aug 2023 13:16:37 -0700 Subject: [PATCH] Fix typings & bump version to 1.2.1 --- package.json | 2 +- src/feeOracle.ts | 2 +- src/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b24a7a6..12affa6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tornado/tornado-oracles", - "version": "1.2.0", + "version": "1.2.1", "description": "Gas oracle for Tornado-specific transactions", "main": "./lib/index.js", "types": "./lib/index.d.ts", diff --git a/src/feeOracle.ts b/src/feeOracle.ts index 20bbcaf..2dfa716 100644 --- a/src/feeOracle.ts +++ b/src/feeOracle.ts @@ -138,7 +138,7 @@ export abstract class TornadoFeeOracle implements ITornadoFeeOracle { * @param {AvailableTokenSymbols | Uppercase} currency Currency symbol * @param {number | string } amount Withdrawal amount in selected currency * @param {number | string } decimals Token (currency) decimals - * @param {BigNumberish} [refund=0] Refund in ETH, if withdrawed other tokens on Mainnet (not ETH) + * @param {BigNumberish} [refundInEth=0] Refund in ETH, if withdrawed other tokens on Mainnet (not ETH) * @param {BigNumberish} [tokenPriceInEth] If withdrawing other token on Mainnet or Goerli, need to provide token price in ETH (in WEI) * @returns {Promise} Fee in WEI (hexed string) */ diff --git a/src/types.ts b/src/types.ts index fe707a1..e5ace0a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -50,7 +50,7 @@ export interface ITornadoFeeOracle { currency: AvailableTokenSymbols, amount: string, decimals: number, - refund: BigNumberish, + refundInEth: BigNumberish, tokenPriceInEth?: BigNumberish, ) => Promise; }