Skip to content

Commit

Permalink
fix(honey): static fees
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowBera committed Dec 20, 2024
1 parent 57caed5 commit b939a6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions apps/honey/src/components/swap-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ export function SwapCard() {
return new BigNumber(amount).decimalPlaces(2, 1).toString();
};

console.log("toAmount", toAmount);

return (
<div className="w-full">
<Card className="relative z-10 m-auto block w-full max-w-[500px] bg-background shadow-2xl">
Expand All @@ -89,7 +87,7 @@ export function SwapCard() {
<Skeleton className="absolute right-6 top-5 h-6 w-40" />
) : (
<div className="absolute right-6 top-5 text-base font-medium text-muted-foreground">
Static fee of <FormattedNumber value={fee ?? 0} />%
Static fee of <FormattedNumber value={fee ?? 0} percent />
</div>
)}
</CardTitle>
Expand Down
4 changes: 2 additions & 2 deletions packages/berajs/src/actions/honey/getCollateralRates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export const getCollateralRates = async ({
for (const coll of collateralList) {
const collIdx = collateralList.indexOf(coll);
collateralRates.single[coll] = {
mintFee: Number(formatUnits(mintRates[collIdx], 18)),
redeemFee: Number(formatUnits(redeemRates[collIdx], 18)),
mintFee: 1 - +formatUnits(mintRates[collIdx], 18),
redeemFee: 1 - +formatUnits(redeemRates[collIdx], 18),
};
totalWeightedMintCollateralsFee +=
collateralRates.single[coll].mintFee *
Expand Down

0 comments on commit b939a6d

Please sign in to comment.