At the moment funding is only possible in the FND token. In the FundRequest platform contract it is possible to specify another ERC-20 token that is allowed to fund issues in a certain repository. The front end should support this by:
displaying the funding in multiple ERC-20 tokens;
allowing to fund in other ERC-20 tokens as FND when adding funding to an issue.
Flow of events
The funder chooses to add funds to an issue on a repository that allows funding in another token as FND.
The Github browser plugin displays the funding dialog with the option to choose the token to be used.
The user chooses which token he want to use.
The user adds te funding to the issue.
When the transaction is processed the funding is displayed on the issue. In case of funding in multiple tokens the funding in the different tokens is diplayed.
Additional info
FND is the default choice to add funding
It is possible that an issue is funded in FND and the repository's native token. Both have to be displayed on the overview screen of issues and the detail screen of issues.
Testcases
Testcase: The user wants to fund an issue on a repository that only allows funding in FND.
When the user chooses to fund he cannot choose the currency to fund in.
Testcase: The user wants to fund an issue on a repository that allows funding in FND and the native token of the project of the repository.
When the user chooses to fund he cannot choose between FND and the project's token to fund.
Testcase: An issue is funded in one currency.
On the overview screen and detail screen the funding in the one currency is displayed.
Testcase: An issue is funded in multiple currencies.
On the overview screen and detail screen the funding in both currencies is displayed.
Context
At the moment funding is only possible in the FND token. In the FundRequest platform contract it is possible to specify another ERC-20 token that is allowed to fund issues in a certain repository. The front end should support this by:
Flow of events
Additional info
Testcases