Skip to content

Commit

Permalink
Merge pull request #2768 from threefoldtech/development_rename_rate
Browse files Browse the repository at this point in the history
Rename rate in currency constructor & getter
  • Loading branch information
xmonader authored May 26, 2024
2 parents 873b20a + 7540f79 commit afcda0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/grid_client/src/modules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

0 comments on commit afcda0c

Please sign in to comment.