Skip to content

burn address returned by stats endpoint does not return a wallet #2097

@jordankzf

Description

@jordankzf

What happened:

http://ocean.defichain.com/v0/mainnet/stats returns:

{
"address": 156047334.980501,
"fee": 317153.5,
"auction": 1531021.72660091,
"payback": 61705058.1749106,
"emission": 98783549.57925758,
"total": 317636376.4388676
}

The RPC source returns the burn wallet address correctly:
https://github.com/DeFiCh/ain/blob/b7816112eecb0fc9cf10d2188ba71c89d94a9ab9/src/masternodes/rpc_accounts.cpp#L1942

./src/defi-cli getburninfo
{
"address": "8defichainBurnAddressXXXXXXXdRQkSm",
"amount": 156039991.31470823,
"tokens": [
"7260.95539278@DFI",
"15050.00000000@ETH",
"5467.86380022@BTC",
"33532000.00000000@USDT",
"21120000.00000000@DOGE",
"57551.00000000@LTC",
"10415.00000000@BCH",
"25350000.00000000@USDC",
"6666.29729315@DUSD",
"115.03602640@AMZN",
"90.86452340@GOOGL",
"1029.33274752@GME",
"170.86966671@TSLA",
"3000000.00000000@SINGA#192",
"174000.00000000@EUROC"
],
...

What you expected to happen:

burned.address should be a wallet address.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't workingneeds/areaNeeds area label(s)needs/triageWaiting for triage to be accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions