This commit is contained in:
shmuel 2021-10-10 17:13:08 +03:00
parent d79eadf02f
commit b69211f790
3 changed files with 9 additions and 10 deletions

View File

@ -49,7 +49,7 @@
<hr class="my-4" />
<div v-if="ethIsGreaterThanOnePerMile" class="flex items-center w-full px-4 mb-2">
<div v-if="ethIsGreaterThanOnePromille" class="flex items-center w-full px-4 mb-2">
<div class="flex items-start justify-between w-full">
<div
class="flex font-medium leading-none whitespace-no-wrap text-14"
@ -111,7 +111,7 @@ export default defineComponent({
ethUserBalance: { type: String, default: '0' },
stabilityLqtyGain: { type: String, default: '0' },
lusdUserBalance: { type: String, default: '0' },
ethIsGreaterThanOnePerMile: { type: Boolean, default: false }
ethIsGreaterThanOnePromille: { type: Boolean, default: false }
},
setup(props) {

View File

@ -60,7 +60,7 @@ export function useBprotocolPosition (){
}
return fromWei((new BigNumber(userData.value.bammUserBalance).dividedBy(userData.value.bammTotalSupply)).multipliedBy(userData.value.lusdTotal))
});
const ethIsGreaterThanOnePerMile = computed(()=> {
const ethIsGreaterThanOnePromille = computed(()=> {
if(userBammInUsd.value === "0"){
return false;
}
@ -138,7 +138,7 @@ export function useBprotocolPosition (){
absolutlWithdrawAmountInLusd,
userBammInUsd,
totalBammSupplyInUsd,
ethIsGreaterThanOnePerMile
ethIsGreaterThanOnePromille
}
}

View File

@ -64,11 +64,10 @@
<div class="shadow rounded-lg py-8 px-6 flex">
<div class="flex-1">
<h3 class="text-2xl text-primary-black font-medium">
Using <br/>
B.Protocl V2
Improved Liquidity Mining Program
</h3>
<p class="mt-4 text-primary font-medium">
<a target="_blank" href="https://medium.com/b-protocol/b-amm-efficient-automated-market-maker-for-defi-liquidations-fea7b0fdc0c5">Learn More</a></p>
<a target="_blank" href="https://docs.bprotocol.org/info/liquidity-mining">Learn More</a></p>
</div>
<div class="flex items-center">
<SVGUse />
@ -96,7 +95,7 @@
price-in-usd="1"
:token="bammToken"
:lusdUserBalance="lusdUserBalance"
:ethIsGreaterThanOnePerMile="ethIsGreaterThanOnePerMile"
:ethIsGreaterThanOnePromille="ethIsGreaterThanOnePromille"
/>
</div>
@ -150,7 +149,7 @@ export default defineComponent({
bammToken,
userBammInUsd,
totalBammSupplyInUsd,
ethIsGreaterThanOnePerMile
ethIsGreaterThanOnePromille
} = useBprotocolPosition()
return {
@ -166,7 +165,7 @@ export default defineComponent({
bammToken,
userBammInUsd,
totalBammSupplyInUsd,
ethIsGreaterThanOnePerMile
ethIsGreaterThanOnePromille
};
}
});