Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Question about rewardDestination state(auto stake). #160

Description

@johnnyji-dev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions