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

Cannot divide two Big Numbers #208

Open
Codebloater opened this issue Jan 26, 2024 · 0 comments
Open

Cannot divide two Big Numbers #208

Codebloater opened this issue Jan 26, 2024 · 0 comments

Comments

@Codebloater
Copy link

CODE: const r_P1_0 = Big(reserve_Pool1.reserve0);
const r_P1_1 = Big(reserve_Pool1.reserve1);
let ratio_P1 = r_P1_0.div(r_P1_1);

ERROR: let ratio_P1 = r_P1_0.div(r_P1_1);
^

TypeError: r_P1_0.div is not a function
at file:///Users/harsh/Developer/Pool%20Sniper/bot/ethereum.js:74:29
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.9.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