File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ const SpotTable = ({ tokens }: { tokens: BankWithMarketData[] }) => {
7575 for ( const token of tokens ) {
7676 const baseBank = token . bank
7777 const price = baseBank . uiPrice
78-
7978 const priceHistory = token ?. market ?. priceHistory ?. length
8079 ? token . market . priceHistory
8180 ?. sort ( ( a , b ) => a . time - b . time )
@@ -106,9 +105,7 @@ const SpotTable = ({ tokens }: { tokens: BankWithMarketData[] }) => {
106105 availableVaultBalance . toFixed ( baseBank . mintDecimals ) ,
107106 )
108107
109- availableValue = available
110- . mul ( typeof price === 'number' ? price : 0 )
111- . toNumber ( )
108+ availableValue = available . mul ( price ) . toNumber ( )
112109 depositRate = baseBank . getDepositRateUi ( )
113110 borrowRate = baseBank . getBorrowRateUi ( )
114111 assetWeight = baseBank
Original file line number Diff line number Diff line change 2323 "dependencies" : {
2424 "@blockworks-foundation/mango-feeds" : " 0.1.7" ,
2525 "@blockworks-foundation/mango-mints-redemption" : " ^0.0.10" ,
26- "@blockworks-foundation/mango-v4" : " 0.33.7 " ,
26+ "@blockworks-foundation/mango-v4" : " 0.33.9 " ,
2727 "@blockworks-foundation/mango-v4-settings" : " 0.14.24" ,
2828 "@blockworks-foundation/mangolana" : " 0.1.2" ,
2929 "@realms-today/spl-governance" : " 0.3.30" ,
Original file line number Diff line number Diff line change 401401 bn.js "^5.2.1"
402402 eslint-config-prettier "^9.0.0"
403403
404- "@blockworks-foundation/
[email protected] .
7 ":
405- version "0.33.7 "
406- resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-v4/-/mango-v4-0.33.7 .tgz#f2f49d1c5e6eb97851419a1dbc0aa26a8fed40dd "
407- integrity sha512-qBYDPsTmIFDwHGLkcB/1rQeJdDKQqM23G+cjoNffBCkrpCKHTYX94m0R5pxqVkE9IYwsdX0Qy1qSX+DzRP3RuQ ==
404+ "@blockworks-foundation/
[email protected] .
9 ":
405+ version "0.33.9 "
406+ resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-v4/-/mango-v4-0.33.9 .tgz#bf1dac84b24655e60db2a53743e009ec179316b9 "
407+ integrity sha512-WgB9WVenexVxRaJ9Hx+XMqry2/TI+cQADWrmooOQzXWeaCFw2RCWA6FzIpaXpKpnU21ByHqnBHOEhzk4TV/jmA ==
408408 dependencies:
409409 "@blockworks-foundation/mango-v4-settings" "0.14.24"
410410 "@blockworks-foundation/mangolana" "0.1.2"
You can’t perform that action at this time.
0 commit comments