Skip to content

Commit

Permalink
feat: ct minting for remainder buys
Browse files Browse the repository at this point in the history
  • Loading branch information
JuaniRios committed Aug 3, 2023
1 parent 5763856 commit 3013eb3
Show file tree
Hide file tree
Showing 2 changed files with 430 additions and 15 deletions.
3 changes: 2 additions & 1 deletion pallets/funding/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,8 @@ impl<T: Config> Pallet<T> {
contribution_id: T::StorageItemId,
) -> DispatchResult {
// * Get variables *
let mut contribution = Contributions::<T>::get((project_id, contributor.clone(), contribution_id)).ok_or(Error::<T>::BidNotFound)?;
let mut contribution = Contributions::<T>::get((project_id, contributor.clone(), contribution_id))
.ok_or(Error::<T>::BidNotFound)?;
let project_details = ProjectsDetails::<T>::get(project_id).ok_or(Error::<T>::ProjectNotFound)?;
let ct_amount = contribution.ct_amount;

Expand Down
Loading

0 comments on commit 3013eb3

Please sign in to comment.