-
Notifications
You must be signed in to change notification settings - Fork 36
Question about rewardDestination state(auto stake). #160
Description
Hi~ I'm developing for astar staking service.
I have a Question about rewardDestination state(auto stake).
=====
What I am saying the rewardDestination like below.
I wanna know that how to change state value about
rewardDestination ( "StakedBalance"={"ON"} or "FreeBalance"={"OFF"} on {endpoint=this.client}.query.dappsStaking.ledger(staker); )
or
Re-Stake After Claiming ( "ON"={"StakedBalance"} or "OFF"={"FreeBalance"} on https://portal.astar.network/shibuya-testnet/dapp-staking/discover).
=====
Q1) Which condition can make it change from "ON" to "OFF" or "OFF" to "ON" automatically not sending transaction[dappsstaking (set_reward_destination)]?
=====
Sharing Test Result)
For example, "A" wallet is on 6.xxSBY(available), 0SBY(staking), 3.xxxSBY(unstaking and unbonded), "FreeBalance"={"OFF"}.
So, I sent [dappsstaking (withdraw_unbonded)] transaction that unbonded 3.xxxSBY.
And I withdrew 3SBY from "A" to "B".
I expected that the "A" wallet is on 6.xxxSBY(available), 0SBY(staking), 0SBY(unstaking and unbonded), "FreeBalance"={"OFF"}.
But "FreeBalance"={"OFF"} is changed to "StakedBalance"={"ON"} automatically.
On subscan.io, "A" wallet has no transaction[dappsstaking (set_reward_destination)] for changing rewardDestination.