+ remove debugger
+ add explainer links text and images
This commit is contained in:
shmuel 2021-10-10 16:58:11 +03:00
parent 8f7bde5c1c
commit d79eadf02f
8 changed files with 132 additions and 5 deletions

View File

@ -0,0 +1,29 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="66" height="78" viewBox="0 0 66 78">
<defs>
<path id="fmbzkjj25a" d="M0.351 0.099L24.698 0.099 24.698 49.005 0.351 49.005z"/>
<path id="61evv3voxc" d="M0 0.098L24.347 0.098 24.347 49.005 0 49.005z"/>
</defs>
<g fill="none" fill-rule="evenodd">
<g>
<g>
<path fill="#e4e9f8" d="M12.312 20.7H65.7v44.388c0 6.8-5.512 12.312-12.312 12.312H0V33.012C0 26.212 5.512 20.7 12.312 20.7z" transform="translate(-864.000000, -644.000000) translate(864.000000, 644.000000) translate(32.850000, 49.050000) scale(-1, 1) translate(-32.850000, -49.050000)"/>
<g>
<path fill="#000" d="M26.943 26.95c-.058.857-.427 1.675-1.098 2.412-.58.64-1.432 1.052-2.538 1.226v.538c0 .367-.148.68-.419.877-.221.164-.465.248-.718.248-.264 0-.516-.092-.728-.266-.17-.143-.37-.404-.37-.859v-.505c-1.148-.118-2.159-.447-3.011-.984-1.057-.676-1.71-1.657-1.944-2.923-.099-.385.063-.663.17-.79.107-.13.385-.346.807-.31.54.014.948.356 1.01.87.137.555.486 1.068 1.054 1.497.458.346 1.1.571 1.914.672l-.003-4.84c-1.125-.132-2.151-.542-2.936-1.197-.864-.752-1.366-1.729-1.502-2.91-.06-.651.029-1.278.26-1.876.242-.592.587-1.1 1.031-1.52.433-.42.977-.756 1.66-1.016.474-.176.964-.294 1.487-.357v-.577c0-.415.184-.677.337-.823.481-.415 1.051-.393 1.499-.04.274.24.402.53.402.863v.697c.907.2 1.672.609 2.283 1.218.768.755 1.173 1.77 1.205 3.017-.124.679-.473 1.029-.948 1.085-.487.05-.978-.209-1.057-.893-.025-.288-.085-.573-.178-.866-.092-.269-.228-.516-.402-.722-.204-.248-.444-.464-.718-.65-.06-.04-.12-.077-.185-.11v5.01c.68.164 1.233.385 1.68.673.537.336.974.746 1.289 1.213.31.486.505.984.592 1.496.094.498.12.966.075 1.421M21.528 8.483S12.3 17.256 12.3 24.93c0 5.096 4.131 9.226 9.227 9.226 5.095 0 9.226-4.13 9.226-9.226 0-7.585-9.226-16.447-9.226-16.447" transform="translate(-864.000000, -644.000000) translate(864.000000, 644.000000) translate(6.300000, 0.000000)"/>
<path fill="#000" d="M18.714 19.583c.022.233.075.47.161.723.077.2.215.4.4.574.223.22.525.423.934.632.227.114.516.21.86.288v-4.889c-.708.123-1.26.39-1.654.8-.509.536-.738 1.15-.701 1.872M23.307 24.205v4.4c.23-.051.42-.118.568-.2.37-.199.577-.396.687-.527.135-.176.24-.369.297-.552.091-.277.098-.405.098-.439v-.014c.02-.882-.155-1.545-.52-1.973-.26-.292-.632-.523-1.13-.695M30.814 11.37c2.256 0 4.085-1.833 4.085-4.088C34.899 3.924 30.814 0 30.814 0s-4.088 3.882-4.088 7.282c0 2.255 1.831 4.087 4.088 4.087M40.164 24.625c3.384 0 6.127-2.743 6.127-6.128 0-5.04-6.127-10.925-6.127-10.925s-6.127 5.825-6.127 10.925c0 3.385 2.742 6.128 6.127 6.128" transform="translate(-864.000000, -644.000000) translate(864.000000, 644.000000) translate(6.300000, 0.000000)"/>
<g transform="translate(-864.000000, -644.000000) translate(864.000000, 644.000000) translate(6.300000, 0.000000) translate(29.565000, 11.009925)">
<mask id="395ck0cvnb" fill="#fff">
<use xlink:href="#fmbzkjj25a"/>
</mask>
<path fill="#000" d="M23.17 27.68c.726-1.46 1.08-16.78 1.528-27.488-.434-.238-1.334.012-1.904.38-.77.497-2.118 1.711-2.505 4.253-.475 3.112-1.667 10.364-2.121 13.114.922.007 1.701.151 2.219.353.582.229 1.01.73 1.148 1.342.137.618-.039 1.26-.47 1.717-.7.748-6.332 7.86-7.828 10.143-.27.415-.108-2.789 6.527-11.362l-.03-.178c-1.03-.409-3.455-.409-5.616.856-3.867 2.262-9.711 7.359-11.914 11.055-1.981 3.325-.076 9.836-.057 9.902.025.084.037.171.037.258l-.005 1.277H.35v5.703H14.49v-5.703h-2.563l-.113-2.905c-.01-.234.073-.46.23-.634 2.487-2.747 10.263-10.667 11.125-12.083" mask="url(#395ck0cvnb)"/>
</g>
<g transform="translate(-864.000000, -644.000000) translate(864.000000, 644.000000) translate(6.300000, 0.000000) translate(0.000000, 11.009925)">
<mask id="hxgkc801dd" fill="#fff">
<use xlink:href="#61evv3voxc"/>
</mask>
<path fill="#000" d="M22.513 42.025c0-.087.012-.174.037-.258.02-.066 1.925-6.577-.057-9.902-2.202-3.696-8.046-8.793-11.913-11.056-2.162-1.264-4.587-1.264-5.617-.855l-.03.178c6.636 8.573 6.797 11.776 6.527 11.362C9.965 29.21 4.334 22.1 3.632 21.351c-.43-.458-.607-1.099-.469-1.717.137-.611.566-1.113 1.148-1.342.517-.202 1.297-.346 2.219-.353-.454-2.75-1.646-10.002-2.12-13.114C4.021 2.283 2.672 1.069 1.903.573 1.334.203.434-.047 0 .193.448 10.9.801 26.22 1.528 27.68c.862 1.416 8.64 9.336 11.125 12.083.157.174.24.4.23.634l-.112 2.905h-2.563v5.703h14.139v-5.703h-1.828l-.006-1.277z" mask="url(#hxgkc801dd)"/>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -0,0 +1,27 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="66" height="79" viewBox="0 0 66 79">
<defs>
<path id="mnwhm70zra" d="M0.67 0.189L54.67 0.189 54.67 19.989 0.67 19.989z"/>
</defs>
<g fill="none" fill-rule="evenodd">
<g>
<g>
<path fill="#e4e9f8" d="M12.312 21.6H65.7v44.388c0 6.8-5.512 12.312-12.312 12.312H0V33.912C0 27.112 5.512 21.6 12.312 21.6z" transform="translate(-361.000000, -643.000000) translate(361.000000, 643.000000) translate(32.850000, 49.950000) scale(-1, 1) translate(-32.850000, -49.950000)"/>
<g>
<path fill="#000" d="M44.712 63.612c0 .716-6.963 1.296-15.552 1.296-8.59 0-15.552-.58-15.552-1.296 0-.716 6.963-1.296 15.552-1.296 8.59 0 15.552.58 15.552 1.296" transform="translate(-361.000000, -643.000000) translate(361.000000, 643.000000) translate(3.600000, 0.000000)"/>
<path fill="#000" stroke="#000" stroke-width="2.7" d="M27.864 11.75v46.656c0 .716.58 1.296 1.296 1.296V10.454c-.716 0-1.296.58-1.296 1.296M30.456 58.406V11.75c0-.715-.58-1.296-1.296-1.296v49.248c.716 0 1.296-.58 1.296-1.296" transform="translate(-361.000000, -643.000000) translate(361.000000, 643.000000) translate(3.600000, 0.000000)"/>
<path fill="#000" stroke="#000" stroke-width="1.8" d="M21.453 58.406c-.645 0-1.244.441-1.347 1.079l-.006.035c-.112.824-.738 1.478-1.57 1.478h-.965c-.645 0-1.244.441-1.347 1.079-.133.811.49 1.513 1.278 1.513H29.16v-5.184h-7.707zM42.102 62.077c-.103-.638-.702-1.079-1.348-1.079h-.963c-.833 0-1.459-.654-1.572-1.478l-.005-.035c-.103-.638-.702-1.079-1.348-1.079H29.16v5.184h11.664c.787 0 1.41-.702 1.278-1.513" transform="translate(-361.000000, -643.000000) translate(361.000000, 643.000000) translate(3.600000, 0.000000)"/>
<path fill="#000" d="M18.792 39.614c0 5.01-4.062 9.072-9.072 9.072-5.01 0-9.072-4.061-9.072-9.072h18.144zM57.672 23.09c0 5.01-4.062 9.072-9.072 9.072-5.01 0-9.072-4.061-9.072-9.072h18.144z" transform="translate(-361.000000, -643.000000) translate(361.000000, 643.000000) translate(3.600000, 0.000000)"/>
<path fill="#000" d="M18.144 39.938c-.125 0-.244-.073-.297-.195L9.72 20.99 1.593 39.743c-.071.164-.262.24-.426.169-.164-.072-.24-.262-.168-.426l8.424-19.44c.103-.238.491-.238.594 0l8.424 19.44c.071.164-.004.354-.168.426-.042.018-.086.026-.129.026M57.024 23.414c-.125 0-.244-.073-.297-.195L48.6 4.465 40.473 23.22c-.071.164-.26.239-.426.169-.164-.072-.24-.262-.168-.427l8.424-19.44c.102-.237.492-.237.594 0l8.424 19.44c.071.165-.004.355-.168.427-.042.018-.086.026-.129.026" transform="translate(-361.000000, -643.000000) translate(361.000000, 643.000000) translate(3.600000, 0.000000)"/>
<path fill="#000" stroke="#000" stroke-width="1.8" d="M10.413 20.706L48.876 5.198c.664-.267.985-1.023.718-1.686L8.726 19.989c.268.664 1.023.985 1.687.717" transform="translate(-361.000000, -643.000000) translate(361.000000, 643.000000) translate(3.600000, 0.000000)"/>
<g transform="translate(-361.000000, -643.000000) translate(361.000000, 643.000000) translate(3.600000, 0.000000) translate(2.124000, 0.000000)">
<mask id="0mb4fvludb" fill="#fff">
<use xlink:href="#mnwhm70zra"/>
</mask>
<path fill="#000" stroke="#000" stroke-width="1.8" d="M45.783 2.794L7.32 18.302c-.664.268-.985 1.023-.718 1.687L47.47 3.512c-.268-.664-1.023-.985-1.687-.718" mask="url(#0mb4fvludb)"/>
</g>
<path fill="#000" d="M29.16 13.532c-1.431 0-2.592-1.16-2.592-2.592 0-1.431 1.16-2.592 2.592-2.592 1.431 0 2.592 1.16 2.592 2.592 0 1.432-1.16 2.592-2.592 2.592z" transform="translate(-361.000000, -643.000000) translate(361.000000, 643.000000) translate(3.600000, 0.000000)"/>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -0,0 +1,17 @@
<svg xmlns="http://www.w3.org/2000/svg" width="67" height="66" viewBox="0 0 67 66">
<g fill="none" fill-rule="evenodd">
<g>
<g>
<g>
<path fill="#e4e9f8" d="M12.312 9H65.7v44.388c0 6.8-5.512 12.312-12.312 12.312H0V21.312C0 14.512 5.512 9 12.312 9z" transform="translate(-1374.000000, -657.000000) translate(1374.000000, 657.000000) translate(0.800000, 0.000000) translate(32.850000, 37.350000) scale(-1, 1) translate(-32.850000, -37.350000)"/>
<g>
<path d="M0 43.2L50.4 43.2 50.4 0 0 0z" transform="translate(-1374.000000, -657.000000) translate(1374.000000, 657.000000) translate(0.800000, 0.000000) translate(7.200000, 0.000000)"/>
<path fill="#000" d="M3.6 53.2L12.6 53.2 12.6 49.6 3.6 49.6zM37.8 53.2L46.8 53.2 46.8 49.6 37.8 49.6z" transform="translate(-1374.000000, -657.000000) translate(1374.000000, 657.000000) translate(0.800000, 0.000000) translate(7.200000, 0.000000)"/>
<path stroke="#000" stroke-width="4" d="M2 2h46.4v43.8H2V2z" transform="translate(-1374.000000, -657.000000) translate(1374.000000, 657.000000) translate(0.800000, 0.000000) translate(7.200000, 0.000000)"/>
<path fill="#000" d="M23.4 18.5H27v-3.6h-3.6v3.6zm0 7.2H27v-3.6h-3.6v3.6zm0 7.2H27v-3.6h-3.6v3.6zm-7.2-14.4h3.6v-3.6h-3.6v3.6zm0 7.2h3.6v-3.6h-3.6v3.6zm0 7.2h3.6v-3.6h-3.6v3.6zM9 18.5h3.6v-3.6H9v3.6zm0 7.2h3.6v-3.6H9v3.6zm0 7.2h3.6v-3.6H9v3.6zM36.9 27.5c-1.988 0-3.6-1.612-3.6-3.6s1.612-3.6 3.6-3.6 3.6 1.612 3.6 3.6-1.612 3.6-3.6 3.6m0-9c-2.982 0-5.4 2.418-5.4 5.4s2.418 5.4 5.4 5.4 5.4-2.418 5.4-5.4-2.418-5.4-5.4-5.4" transform="translate(-1374.000000, -657.000000) translate(1374.000000, 657.000000) translate(0.800000, 0.000000) translate(7.200000, 0.000000)"/>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -166,7 +166,6 @@ export default defineComponent({
pending.value = true
try {
const supplyAmountInWei = valInt(lusdWithdrawAmountToBamm(amountParsed.value), 18)
debugger
const getDepositId = 0
const setDepositId = 0
const setEthGainId = 0

View File

@ -22,7 +22,7 @@ export function useBprotocolLqtyClaim() {
const pendingLqtyClaim = ref(false);
async function claimLqty() {
debugger
pendingLqtyClaim.value = true;
try {

View File

@ -66,7 +66,6 @@ export function useBprotocolPosition (){
}
const userEthInUsd = new BigNumber(ethUserBalance.value).multipliedBy(ethPrice.value)
const ethInSp = userEthInUsd.dividedBy(userBammInUsd.value)
debugger
return ethInSp.isGreaterThan(0.0001)
})
@ -153,7 +152,6 @@ async function getUserInfo (user, web3){
resolveAddr
);
const userInfo = await bprotocolInstance.methods.getUserInfo(user, bammAddr, '0x6DEA81C8171D0bA574754EF6F8b412F2Ed88c54D').call()
debugger
return userInfo
}catch (e) {

View File

@ -81,7 +81,7 @@ const appsPerNetwork = {
{
id: "bprotocol",
icon: BprotocolIcon,
name: "B.Protocol",
name: "B.Protocol v2",
url: "/mainnet/bprotocol",
description: "Automated Rebalancing <br/>for Liquity Stability Pool"
},

View File

@ -27,6 +27,57 @@
</div>
<div class="mt-10">
<h2 class="text-primary-gray text-lg font-semibold">Overview</h2>
<div
class="px-1 mt-6 grid w-full grid-cols-1 gap-4 sm:grid-cols-3 xl:gap-[18px]"
>
<div class="shadow rounded-lg py-8 px-6 flex">
<div class="flex-1">
<h3 class="text-2xl text-primary-black font-medium">
Stabilize
Liquity Protocol
</h3>
<p class="mt-4 text-primary font-medium">
<a target="_blank" href="https://docs.liquity.org/faq/stability-pool-and-liquidations">Learn More</a></p>
</div>
<div class="flex items-center">
<SVGStableize />
</div>
</div>
<div class="shadow rounded-lg py-8 px-6 flex">
<div class="flex-1">
<h3 class="text-2xl text-primary-black font-medium">
Get Passive
Yield on Your LUSD
</h3>
<p class="mt-4 text-primary font-medium">
<a target="_blank" href="https://medium.com/b-protocol/b-protocol-liquity-integration-is-live-1342605e7cfb">Learn More</a></p>
</div>
<div class="flex items-center">
<SVGEarn />
</div>
</div>
<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
</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>
</div>
<div class="flex items-center">
<SVGUse />
</div>
</div>
</div>
</div>
<div class="mt-[60px]">
<div
class="w-full flex flex-col mt-6 sm:flex-row sm:items-center sm:justify-between xl:mt-4"
@ -57,6 +108,9 @@
import { defineComponent, computed, useRouter } from "@nuxtjs/composition-api";
import BackIcon from "~/assets/icons/back.svg?inline";
import SVGBalance from "@/assets/img/icons/balance.svg?inline";
import SVGStableize from "@/assets/img/icons/bprotocol/stableize.svg?inline";
import SVGUse from "@/assets/img/icons/bprotocol/use-v2.svg?inline";
import SVGEarn from "@/assets/img/icons/bprotocol/earn.svg?inline";
import SVGPercent from "@/assets/img/icons/percent.svg?inline";
import SVGAdd from "~/assets/img/icons/add.svg?inline";
import BprotocolIcon from "~/assets/icons/b-protocol.svg?inline";
@ -75,6 +129,9 @@ export default defineComponent({
BprotocolIcon,
ButtonCTAOutlined,
SVGBalance,
SVGStableize,
SVGEarn,
SVGUse,
SVGPercent,
CardBprotocolBamm
},