Skip to content

Incorrect ZeroMaxAmount error reported by swap v3 #2023

@gztensor

Description

@gztensor

This line has a generic error that causes ZeroMaxAmount to be returned by add stake and move stake extrinsics in some cases. Refactor error handling.

https://github.com/opentensor/subtensor/blob/main/pallets/subtensor/src/staking/add_stake.rs#L196

Metadata

Metadata

Assignees

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