Skip to content

Commit

Permalink
Update readme.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
ASCorreia authored Jun 3, 2024
1 parent 00a28e2 commit 5a38bf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokens/token-fundraiser/anchor/readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl<'info> CheckContributions<'info> {
}
```

In this implementation, we check if the amount of tokens in the vault is equal or bigger then the fundraiing campaign target.
In this implementation, we check if the amount of tokens in the vault is equal or bigger then the fundraising campaign target.
If it is, then we perform a CPI to the token program to transfer the funds from the vault to the maker ATA. Since the vault is an ATA, we need to create our CPI contexr with a signer and use the seeds and bump from the PDA (We are signing with our program on behalf of that PDA).

In the end, we close our Fundraising account and send the lamports from the rent back to the maker
Finally, we close our Fundraiser account and send the lamports from the rent back to the maker.

0 comments on commit 5a38bf7

Please sign in to comment.