-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Add fee to nns stake neuron method (#349)
# Motivation Prepare for migration of HW to Candid. If the fee is not passed, the transfer fetches it. Yet, the Ledger App doesn't support fetching the transfer fee. One solution is to pass a fee when staking a neuron, which is then passed when making the transfer. Another solution (not here) is to use an anonymous identity when fetching the fee. This is not straightforward because we use classes. The identity is in the agent, which is passed in the initialization of the class. # Changes * Add a `fee` parameter when staking an NNS neuron. # Tests * Add a test to check that the `fee` parameter is passed then to the `transfer` method.
- Loading branch information
Showing
3 changed files
with
37 additions
and
3 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