subtract twenty percent on yields

This commit is contained in:
João Geonizeli
2021-09-11 10:42:15 -03:00
parent 1f7e8d4a33
commit cd1d922309

View File

@@ -8,6 +8,8 @@ import { getPriceInBusd } from "../../utils/getPrice";
import { getTotalStaked } from "../../utils/getTotalStaked"; import { getTotalStaked } from "../../utils/getTotalStaked";
import { StakeOrderModal } from "./StakeOrderModal"; import { StakeOrderModal } from "./StakeOrderModal";
const INVESTMENT_FEE_PERCENTAGE = 20;
type PoolProps = { type PoolProps = {
pool: PoolConfig; pool: PoolConfig;
balance: string; balance: string;
@@ -51,7 +53,7 @@ export const Pool: FC<PoolProps> = ({ pool, balance }) => {
if (aprValue) { if (aprValue) {
setApr({ setApr({
loading: false, loading: false,
value: aprValue.toFixed(2), value: (aprValue - INVESTMENT_FEE_PERCENTAGE).toFixed(2),
}); });
} }
})(); })();