diff --git a/packages/grid_client/scripts/tft.ts b/packages/grid_client/scripts/currency.ts similarity index 100% rename from packages/grid_client/scripts/tft.ts rename to packages/grid_client/scripts/currency.ts diff --git a/packages/grid_client/src/modules/tft.ts b/packages/grid_client/src/modules/currency.ts similarity index 94% rename from packages/grid_client/src/modules/tft.ts rename to packages/grid_client/src/modules/currency.ts index 37c02eb8be..6eb8a88979 100644 --- a/packages/grid_client/src/modules/tft.ts +++ b/packages/grid_client/src/modules/currency.ts @@ -5,10 +5,10 @@ import { CurrencyModel } from "./models"; class TFTUSDConversionService { // TFT rate: 1 TFT = x USD - constructor(protected rate: number, private decimals = 2) {} + constructor(private _rate: number, private decimals = 2) {} - get _rate() { - return this.rate; + get rate() { + return this._rate; } @expose diff --git a/packages/grid_client/src/modules/index.ts b/packages/grid_client/src/modules/index.ts index dd55eb713a..e6b3603de7 100644 --- a/packages/grid_client/src/modules/index.ts +++ b/packages/grid_client/src/modules/index.ts @@ -22,5 +22,5 @@ export * from "./farmerbot"; export * from "./farms"; export * from "./networks"; export * from "./bridge"; -export * from "./tft"; +export * from "./currency"; export * from "./base"; diff --git a/packages/grid_client/tests/modules/tft.test.ts b/packages/grid_client/tests/modules/currency.test.ts similarity index 100% rename from packages/grid_client/tests/modules/tft.test.ts rename to packages/grid_client/tests/modules/currency.test.ts