Skip to content

Commit 9f0cc2a

Browse files
committed
feat: add Boost tab UI
1 parent 1696655 commit 9f0cc2a

3 files changed

Lines changed: 10 additions & 17 deletions

File tree

.changeset/twenty-sites-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@venusprotocol/evm": minor
3+
---
4+
5+
add base Boost tab

apps/evm/src/libs/translations/translations/en.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -660,13 +660,6 @@
660660
},
661661
"operationForm": {
662662
"availableAmount": "Available",
663-
"boost": {
664-
"flows": {
665-
"borrow": "Borrow {{ tokenSymbol }}",
666-
"supply": "Supply {{ tokenSymbol }}",
667-
"swap": "Swap"
668-
}
669-
},
670663
"boostTabAltText": "Rocket icon",
671664
"boostTabTitle": "Boost",
672665
"borrow": "Borrow",
@@ -1533,4 +1526,4 @@
15331526
},
15341527
"withdrawTabTitle": "Withdraw"
15351528
}
1536-
}
1529+
}

apps/evm/src/pages/Vai/Borrow/index.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,10 @@ export const Borrow: React.FC = () => {
149149
},
150150
];
151151

152-
const { data: getSimulatedPoolData } = useSimulateBalanceMutations(
153-
{
154-
pool: legacyPool,
155-
balanceMutations,
156-
},
157-
{
158-
enabled: debouncedInputAmountTokens.isGreaterThan(0),
159-
},
160-
);
152+
const { data: getSimulatedPoolData } = useSimulateBalanceMutations({
153+
pool: legacyPool,
154+
balanceMutations,
155+
});
161156
const simulatedPool = getSimulatedPoolData?.pool;
162157

163158
const feeTokens = useMemo(

0 commit comments

Comments
 (0)