FreeosDAO / freeoscontracts

Freeos Smart Contract Code
0 stars 1 forks source link

Never Staked, still getting error that account is already staked #15

Closed shahidnz closed 3 years ago

shahidnz commented 3 years ago

Created v type user. Registered unstake stake

Got error that account is already staked. The account is never staked as staking is failing.

Logs:

07:13:39 06/03/2021 ~/eosio-wallet$ proton push action freeos333333 reguser "[\"${acc}\"]" -p ${acc}@active
executed transaction: 828dbbda71618cf5a35f0a716d8b60a86368d70cc70dfa55ba028353e5254693  104 bytes  309 us
#  freeos333333 <= freeos333333::reguser        {"user":"badusrbadusr"}
>> badusrbadusr successfully registered
warning: transaction executed locally, but may not be confirmed by the network yet         ]
07:14:02 06/03/2021 ~/eosio-wallet$ proton push action freeos333333 unstake "[\"${acc}\"]" -p $acc@active
executed transaction: 04d80e6ab4071496df300cfc83fc1865f588b53a146ddf9273bf2a198f69884f  104 bytes  186 us
#  freeos333333 <= freeos333333::unstake        {"user":"badusrbadusr"}
warning: transaction executed locally, but may not be confirmed by the network yet         ]
07:14:11 06/03/2021 ~/eosio-wallet$ proton push action eosio.token transfer "[\"${acc}\", \"freeos333333\",\"0.0000 XPR\", \"freeos stake\"]"  -p $acc@active
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: must transfer positive quantity
pending console output:
07:14:35 06/03/2021 ~/eosio-wallet$ proton push action eosio.token transfer "[\"${acc}\", \"freeos333333\",\"10.0000 XPR\", \"freeos stake\"]"  -p $acc@acti
ve
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: no balance object found
pending console output:
07:14:47 06/03/2021 ~/eosio-wallet$ proton push action freeos333333 unvest "[\"${acc}\"]" -p ${acc}@active
executed transaction: edb10b4ea5b0f7435ae0072b7e643d725f79d018364d2ab3690e97b9f6b4cd76  104 bytes  207 us
#  freeos333333 <= freeos333333::unvest         {"user":"badusrbadusr"}
>> You have no vested FREEOS therefore nothing to unvest.
warning: transaction executed locally, but may not be confirmed by the network yet         ]
07:15:15 06/03/2021 ~/eosio-wallet$ proton push action eosio.token transfer "[\"${acc}\", \"freeos333333\",\"10.0000 XPR\", \"freeos stake\"]"  -p $acc@active
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: no balance object found
pending console output:
07:15:37 06/03/2021 ~/eosio-wallet$
07:15:46 06/03/2021 ~/eosio-wallet$ proton push action eosio.token transfer "[\"${acc}\", \"freeos333333\",\"10.0000 XPR\", \"freeos stake\"]"  -p $acc@active
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: the account is already staked
pending console output:
07:16:13 06/03/2021 ~/eosio-wallet$
tommccann777 commented 3 years ago

The stake requirement for this account is 0 XPR so it is considered to be already staked. This is correct behaviour.