Skip to content

getTotalCollateral missing at non-near head block heights for loans contract #84

@robcxyz

Description

@robcxyz

Failed request -> BH 0x5ce7749 = BH 97417033

curl -X POST https://api.icon.community/api/v3 \
-H 'Content-Type: application/json' \
-d '{
    "jsonrpc": "2.0",
    "method": "icx_call",
    "id": 1,
    "params": {
        "to": "cx66d4d90f5f113eba575bf793570135f9b10cece1",
        "dataType": "call",
        "data": {
          "method": "getTotalCollateral"
        },
        "height": "0x5cdce89"
    }
}'

# {"jsonrpc":"2.0","error":{"code":-30001,"message":"SCOREError(-30001): E0001:UnknownFailure"},"id":1}

Ok -> 0x5ce7749 = 86400/2 + 97417033 (ie last bad request plus aprox one day of blocks)

curl -X POST https://api.icon.community/api/v3 \
-H 'Content-Type: application/json' \
-d '{
    "jsonrpc": "2.0",
    "method": "icx_call",
    "id": 1,
    "params": {
        "to": "cx66d4d90f5f113eba575bf793570135f9b10cece1",
        "dataType": "call",
        "data": {
          "method": "getTotalCollateral"
        },
        "height": "0x5ce7749"
    }
}'

# {"jsonrpc":"2.0","result":"0x49c16afca4a11791e7dba","id":1}

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