Skip to content

Allow xBZZ input rather than PLUR and/or log xBZZ preview value before depositing stake #595

@NoahMaizels

Description

@NoahMaizels

When depositing stake as PLUR, it's very easy to accidentally stake too much or too little:

swarm-cli stake --deposit 100000000000000000

It would be easier if we can use xBZZ rather than PLUR:

swarm-cli stake --deposit-xbzz 10

(or maybe change --deposit to take xBZZ instead of PLUR? If they use the PLUR value accidentally after the change it would just fail due to lack of funds I suppose, so there would not be a risk of overstaking)

If PLUR input is used I think it would be good to show the preview value in xBZZ:

swarm-cli stake --deposit 1000000000000000000
You are about to deposit a non-refundable stake of 100 xBZZ, are you sure you wish to proceed? [y/N]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions