FreeosDAO / freeoscontracts

Freeos Smart Contract Code
0 stars 1 forks source link

Critical - Unable to claim while being in the first iteration [verified - v & d types] #19

Open shahidnz opened 3 years ago

shahidnz commented 3 years ago

As d & v type accounts do not have to stake in iteration 1. They have registered already.

I tried claim action with v type account - it failed

04:22:01 17/04/2021 ~/eosio-wallet$ proton get table freeost firstusertom users
{
  "rows": [{
      "stake": "0.0000 XPR",
      "account_type": 118,
      "registered_time": "2021-04-17T03:59:39",
      "staked_iteration": 0,
      "votes": 0,
      "issuances": 0,
      "last_issuance": 0
    }
  ],
  "more": false,
  "next_key": ""
}
04:22:07 17/04/2021 ~/eosio-wallet$ proton push action $freeos claim '["firstusertom"]' -p firstusertom
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: user is not eligible to claim in this iteration
pending console output: 

I tried with the d type account - it failed again

04:26:19 17/04/2021 ~/eosio-wallet$ proton get table freeost secondshahid  users
{
  "rows": [{
      "stake": "0.0000 XPR",
      "account_type": 100,
      "registered_time": "2021-04-17T03:57:24",
      "staked_iteration": 0,
      "votes": 0,
      "issuances": 0,
      "last_issuance": 0
    }
  ],
  "more": false,
  "next_key": ""
}
04:26:25 17/04/2021 ~/eosio-wallet$ 
04:26:32 17/04/2021 ~/eosio-wallet$ proton push action $freeos claim '["secondshahid"]' -p secondshahid
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: user is not eligible to claim in this iteration
pending console output: 
04:27:07 17/04/2021 ~/eosio-wallet$

@tommccann777 is debugging the issue.