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

REXState#value() returns an abnormal value #13

Open
ttwishing opened this issue Aug 23, 2024 · 0 comments
Open

REXState#value() returns an abnormal value #13

ttwishing opened this issue Aug 23, 2024 · 0 comments

Comments

@ttwishing
Copy link
Contributor

ttwishing commented Aug 23, 2024

WX20240823-161452@2x

REXState#value():
public get value() { return ( (Number(this.total_lent.units) + Number(this.total_unlent.units)) / Number(this.total_rex.units) ) }

According to the screenshot above, If the value of total_rex is very large, Number(total_rex.units) will cause an exception, resulting in an exception in the REXState#value() method.

responase json:
{
"rows": [
{
"version": 0,
"total_lent": "6925421.9746 EOS",
"total_unlent": "124587204.5398 EOS",
"total_rent": "3698.4341 EOS",
"total_lendable": "131512626.5144 EOS",
"total_rex": "1181188743903.2468 REX",
"namebid_proceeds": "0.0000 EOS",
"loan_num": 504605
}
],
"more": false,
"next_key": ""
}

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