[Crowdfund] Allow users to invest by purchasing tiers
Closed this issue · 0 comments
cowboy0015 commented
Description
Allow users to invest by purchasing the tiers using the native/cw20 token used by the campaign
Implementation
- Users can invest only if the campaign is on
ONGOING
stage and is not expired yet - Update the current capital based on the invested amount.
- Update the tiers' remaining amount.
- Save user's invest amount, purchased tiers
- Tiers are not actually minted in this stage. But the history is saved on the state
Dependencies
Acceptance Criteria
Both native/cw20 token can be used to purchase tiers.
Tiers / current capital is saved correctly.
Users' purchase history is saved correctly.
Unit tests