Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
mwamedacen committed Aug 19, 2022
1 parent 760fbdb commit c52c96f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dex/solidly/forks-override/spiritSwapV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ const SpiritSwapV2PairABI = [
];

const spiritSwapV2PairIface = new Interface(SpiritSwapV2PairABI);
const FEE_FACTOR = 1e9;

export class SpiritSwapV2 extends Solidly {
feeFactor = FEE_FACTOR;
feeFactor = 1e9;

public static dexKeysWithNetwork: { key: string; networks: Network[] }[] =
getDexKeysWithNetwork(_.pick(SolidlyConfig, ['SpiritSwapV2']));
Expand Down Expand Up @@ -50,7 +49,7 @@ export class SpiritSwapV2 extends Solidly {
);
if (!fees) return 0;

const feeCode = Math.ceil(FEE_FACTOR / fees);
const feeCode = Math.ceil(this.feeFactor / fees);
return feeCode;
};

Expand Down

0 comments on commit c52c96f

Please sign in to comment.