Skip to content

Commit

Permalink
Merge pull request #2444 from fluidity-money/develop-remove-fee-add-t…
Browse files Browse the repository at this point in the history
…raderjoe-application

Add trader joe applicaiton and remove fee
  • Loading branch information
af-afk authored Dec 13, 2023
2 parents 57906e0 + f88b606 commit a7e517a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 1 addition & 11 deletions web/app.fluidity.money/app/components/Fluidify/FluidifyForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ interface IFluidifyFormProps {
swapping: boolean;
}

const FeeDenom = new BN(5, 32);

const Zero = new BN(0);

const Thousand = new BN(1000);

export const FluidifyForm = ({
handleSwap,
assetToken,
Expand Down Expand Up @@ -135,10 +129,6 @@ export const FluidifyForm = ({

const tokenIsFluid = !!assetToken.isFluidOf;

const fee = !tokenIsFluid ? Zero : swapAmount.mul(FeeDenom).div(Thousand);

const swapAmountAfterFee = swapAmount.sub(fee);

return (
<div className={"fluidify-form"}>
<Text size="lg" prominent>
Expand Down Expand Up @@ -189,7 +179,7 @@ export const FluidifyForm = ({

{/* Creating / Remaining Tokens */}
<Text>
Creating {addDecimalToBn(swapAmountAfterFee, toToken.decimals)}{" "}
Creating {addDecimalToBn(swapAmount, toToken.decimals)}{" "}
{toToken.symbol || ""}
</Text>
{/* Tokens User Holds */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export type EthereumApplication =
| "dodo_v2"
| "curve"
| "multichain"
| "xy_finance";
| "xy_finance"
| "trader_joe";

export type SolanaApplication =
| "spl"
Expand Down

0 comments on commit a7e517a

Please sign in to comment.