From 5a38bf7a9d7bcfe37e6e94de63b1917e059f61da Mon Sep 17 00:00:00 2001 From: ASCorreia <36857753+ASCorreia@users.noreply.github.com> Date: Mon, 3 Jun 2024 01:50:07 +0100 Subject: [PATCH] Update readme.MD --- tokens/token-fundraiser/anchor/readme.MD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokens/token-fundraiser/anchor/readme.MD b/tokens/token-fundraiser/anchor/readme.MD index 5c2f7407..897c0778 100644 --- a/tokens/token-fundraiser/anchor/readme.MD +++ b/tokens/token-fundraiser/anchor/readme.MD @@ -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.