From d79eadf02fc35934c4b0cb9d9994ac186bc26814 Mon Sep 17 00:00:00 2001 From: shmuel Date: Sun, 10 Oct 2021 16:58:11 +0300 Subject: [PATCH] refine + remove debugger + add explainer links text and images --- assets/img/icons/bprotocol/earn.svg | 29 ++++++++++ assets/img/icons/bprotocol/stableize.svg | 27 +++++++++ assets/img/icons/bprotocol/use-v2.svg | 17 ++++++ .../bprotocol/SidebarBprotocolWithdraw.vue | 1 - .../protocols/useBprotocolLqtyClaim.ts | 2 +- .../protocols/useBprotocolPositions.ts | 2 - pages/index.vue | 2 +- pages/mainnet/bprotocol.vue | 57 +++++++++++++++++++ 8 files changed, 132 insertions(+), 5 deletions(-) create mode 100644 assets/img/icons/bprotocol/earn.svg create mode 100644 assets/img/icons/bprotocol/stableize.svg create mode 100644 assets/img/icons/bprotocol/use-v2.svg diff --git a/assets/img/icons/bprotocol/earn.svg b/assets/img/icons/bprotocol/earn.svg new file mode 100644 index 0000000..b209419 --- /dev/null +++ b/assets/img/icons/bprotocol/earn.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/img/icons/bprotocol/stableize.svg b/assets/img/icons/bprotocol/stableize.svg new file mode 100644 index 0000000..ade5743 --- /dev/null +++ b/assets/img/icons/bprotocol/stableize.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/img/icons/bprotocol/use-v2.svg b/assets/img/icons/bprotocol/use-v2.svg new file mode 100644 index 0000000..872c357 --- /dev/null +++ b/assets/img/icons/bprotocol/use-v2.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/components/sidebar/context/bprotocol/SidebarBprotocolWithdraw.vue b/components/sidebar/context/bprotocol/SidebarBprotocolWithdraw.vue index 30a4dfb..3b2d085 100644 --- a/components/sidebar/context/bprotocol/SidebarBprotocolWithdraw.vue +++ b/components/sidebar/context/bprotocol/SidebarBprotocolWithdraw.vue @@ -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 diff --git a/composables/protocols/useBprotocolLqtyClaim.ts b/composables/protocols/useBprotocolLqtyClaim.ts index 5552c5c..fe90b97 100644 --- a/composables/protocols/useBprotocolLqtyClaim.ts +++ b/composables/protocols/useBprotocolLqtyClaim.ts @@ -22,7 +22,7 @@ export function useBprotocolLqtyClaim() { const pendingLqtyClaim = ref(false); async function claimLqty() { - debugger + pendingLqtyClaim.value = true; try { diff --git a/composables/protocols/useBprotocolPositions.ts b/composables/protocols/useBprotocolPositions.ts index b19965a..84aab86 100644 --- a/composables/protocols/useBprotocolPositions.ts +++ b/composables/protocols/useBprotocolPositions.ts @@ -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) { diff --git a/pages/index.vue b/pages/index.vue index ce0f3e7..8cf3120 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -81,7 +81,7 @@ const appsPerNetwork = { { id: "bprotocol", icon: BprotocolIcon, - name: "B.Protocol", + name: "B.Protocol v2", url: "/mainnet/bprotocol", description: "Automated Rebalancing
for Liquity Stability Pool" }, diff --git a/pages/mainnet/bprotocol.vue b/pages/mainnet/bprotocol.vue index 6de5815..4386941 100644 --- a/pages/mainnet/bprotocol.vue +++ b/pages/mainnet/bprotocol.vue @@ -27,6 +27,57 @@ +
+

Overview

+ +
+
+
+

+ Stabilize + Liquity Protocol +

+

+ Learn More

+
+
+ +
+
+ +
+
+

+ Get Passive + Yield on Your LUSD +

+

+ Learn More

+
+
+ +
+
+ +
+
+

+ Using
+ B.Protocl V2 +

+

+ Learn More

+
+
+ +
+
+ +
+
+