Skip to content

REXState#value() returns an abnormal value #13

Description

@ttwishing

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": ""
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions