File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
lendMarkets/modules/common Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @curvefi/llamalend-api" ,
3- "version" : " 2.0.13 " ,
3+ "version" : " 2.0.14 " ,
44 "description" : " JavaScript library for Curve Lending" ,
55 "main" : " lib/index.js" ,
66 "author" : " Macket" ,
Original file line number Diff line number Diff line change @@ -235,11 +235,11 @@ export interface IResponseApi {
235235
236236export interface IQuote {
237237 outAmount : string ,
238- priceImpact : number
238+ priceImpact : number | null
239239}
240240
241241export interface ILeverageMetrics {
242- priceImpact : number ,
242+ priceImpact : number | null ,
243243 bands : [ number , number ] ,
244244 prices : string [ ] ,
245245 health : string ,
Original file line number Diff line number Diff line change @@ -880,7 +880,7 @@ export class LeverageZapV2BaseModule {
880880
881881 const _stateCollateral = parseUnits ( stateCollateral , this . market . collateral_token . decimals ) ;
882882 const _userCollateral = parseUnits ( userCollateral , this . market . collateral_token . decimals ) ;
883- const priceImpact = _stateCollateral + _userCollateral > BigInt ( 0 ) ? quote . priceImpact : 0 ;
883+ const priceImpact = _stateCollateral + _userCollateral > BigInt ( 0 ) ? quote . priceImpact : null ;
884884
885885 return {
886886 priceImpact,
You can’t perform that action at this time.
0 commit comments