Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'decimals') #4

Open
ram13369 opened this issue May 22, 2024 · 0 comments
Open

Comments

@ram13369
Copy link

aave-liquidator/src/v2liquidation.ts:137
return loan.max_borrowedPrincipal * allowedLiquidation * (loan.max_collateralBonus - 1) * loan.max_borrowedPriceInEth / Math.pow(10, _constants.TOKEN_LIST[loan.max_borrowedSymbol].decimals) >= profit_threshold;
^

TypeError: Cannot read properties of undefined (reading 'decimals')
at filter (/Users/satyasaichava/aave-liquidator/src/v2liquidation.ts:131:185)
at Array.filter ()
at parseUsers (/Users/satyasaichava/aave-liquidator/src/v2liquidation.ts:131:17)
at /Users/satyasaichava/aave-liquidator/src/v2liquidation.ts:73:26
at processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.19.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant