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" /> <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 items-start justify-between w-full">
<div <div
class="flex font-medium leading-none whitespace-no-wrap text-14" class="flex font-medium leading-none whitespace-no-wrap text-14"
@ -111,7 +111,7 @@ export default defineComponent({
ethUserBalance: { type: String, default: '0' }, ethUserBalance: { type: String, default: '0' },
stabilityLqtyGain: { type: String, default: '0' }, stabilityLqtyGain: { type: String, default: '0' },
lusdUserBalance: { type: String, default: '0' }, lusdUserBalance: { type: String, default: '0' },
ethIsGreaterThanOnePerMile: { type: Boolean, default: false } ethIsGreaterThanOnePromille: { type: Boolean, default: false }
}, },
setup(props) { 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)) 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"){ if(userBammInUsd.value === "0"){
return false; return false;
} }
@ -138,7 +138,7 @@ export function useBprotocolPosition (){
absolutlWithdrawAmountInLusd, absolutlWithdrawAmountInLusd,
userBammInUsd, userBammInUsd,
totalBammSupplyInUsd, totalBammSupplyInUsd,
ethIsGreaterThanOnePerMile ethIsGreaterThanOnePromille
} }
} }

View File

@ -64,11 +64,10 @@
<div class="shadow rounded-lg py-8 px-6 flex"> <div class="shadow rounded-lg py-8 px-6 flex">
<div class="flex-1"> <div class="flex-1">
<h3 class="text-2xl text-primary-black font-medium"> <h3 class="text-2xl text-primary-black font-medium">
Using <br/> Improved Liquidity Mining Program
B.Protocl V2
</h3> </h3>
<p class="mt-4 text-primary font-medium"> <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>
<div class="flex items-center"> <div class="flex items-center">
<SVGUse /> <SVGUse />
@ -96,7 +95,7 @@
price-in-usd="1" price-in-usd="1"
:token="bammToken" :token="bammToken"
:lusdUserBalance="lusdUserBalance" :lusdUserBalance="lusdUserBalance"
:ethIsGreaterThanOnePerMile="ethIsGreaterThanOnePerMile" :ethIsGreaterThanOnePromille="ethIsGreaterThanOnePromille"
/> />
</div> </div>
@ -150,7 +149,7 @@ export default defineComponent({
bammToken, bammToken,
userBammInUsd, userBammInUsd,
totalBammSupplyInUsd, totalBammSupplyInUsd,
ethIsGreaterThanOnePerMile ethIsGreaterThanOnePromille
} = useBprotocolPosition() } = useBprotocolPosition()
return { return {
@ -166,7 +165,7 @@ export default defineComponent({
bammToken, bammToken,
userBammInUsd, userBammInUsd,
totalBammSupplyInUsd, totalBammSupplyInUsd,
ethIsGreaterThanOnePerMile ethIsGreaterThanOnePromille
}; };
} }
}); });