-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(delegation): auto associate when possible (#284)
* feat(delegation): auto associate when possible Whenever the asset bearing `ExocoreAssetID` is delegated by a staker to an operator, we should check if the staker address is the same as the operator address. If a match is found, they should be automatically associated. * doc(delegation): update comment about duplicate - It is not possible to overwrite an association of the `stakerID` ending with `0x0` because such an association cannot be made using any other mechanism. - Even if it exists, the overwriting will do nothing of import due to the equality check. * test(delegation): check operator share auto assoc Validate that the operator share is correctly set to the expected value when self-staking ExocoreAssetID * doc(assets): clarify StakerAssetInfo - for ExocoreAssetID, the `TotalDepositAmount` is post-slashing, if any was applied. - for other asset IDs, all components are pre-slashing.
- Loading branch information
1 parent
59241ba
commit 4225ead
Showing
4 changed files
with
106 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters