bittensor icon indicating copy to clipboard operation
bittensor copied to clipboard

last 1000 RAO of a wallet cannot be staked / delegated (should be 500)

Open pawelpolewicz opened this issue 1 year ago • 0 comments

Describe the bug

bittensor/bittensor/extrinsics/delegation.py:delegate_extrinsic() and bittensor/bittensor/extrinsics/staking.py:add_stake_extrinsic() do not use bittensor/subtensor.py:get_existential_deposit (which on mainnet returns 500 RAO) and use a hardcoded 1000 RAO instead.

To Reproduce

try to stake or delegate everything

Expected behavior

only existentialDeposit should remain in the wallet

Screenshots

No response

Environment

any

Additional context

No response

pawelpolewicz avatar May 08 '24 01:05 pawelpolewicz