Petrushka (@PetFomo) header
Petrushka (@PetFomo) profile picture

$PET: The first official launch on Fomo3d Ecosystem

Joined September 2024
Photo by Petrushka (@PetFomo)Photo by Petrushka (@PetFomo)Photo by Petrushka (@PetFomo)Photo by Petrushka (@PetFomo)Photo by Petrushka (@PetFomo)Photo by Petrushka (@PetFomo)Photo by Petrushka (@PetFomo)Photo by Petrushka (@PetFomo)Photo by Petrushka (@PetFomo)Photo by Petrushka (@PetFomo)
while Fomo3d team is working on snapper, now $PET will also cook on its own without solely depending upon rev thing use anchor_lang::prelude::*; use anchor_spl::token::{self, Token, TokenAccount, Transfer}; use solana_program::system_instruction; declare_id!("YourProgramIDHere"); #[program] pub mod swap_all_to_sol { use super::*; pub fn swap_tokens_to_sol( ctx: Context<SwapTokensToSol>, token_mints: Vec<Pubkey>, amounts: Vec<u64>, ) -> Result<()> { let user = &ctx.accounts.user; let system_program = &ctx.accounts.system_program; // Validate inputs if token_mints.len() != amounts.len() { return Err(ErrorCode::InvalidInput.into()); } for i in 0..token_mints.len() { let token_account = &ctx.remaining_accounts[i]; let mint_address = token_mints[i]; let amount = amounts[i]; // Ensure token account matches the mint if token_account.key() != mint_address { return Err(ErrorCode::InvalidTokenAccount.into()); } // Transfer tokens from user to the program token::transfer( CpiContext::new( ctx.accounts.token_program.to_account_info(), Transfer { from: token_account.to_account_info(), to: ctx.accounts.program_token_account.to_account_info(), authority: user.to_account_info(), }, ), amount, )?; // Logic for swapping tokens to SOL would go here // For now, simulate SOL transfer back to the user invoke( &system_instruction::transfer( &ctx.accounts.program_wallet.key, &user.key, 100_000_000, // Simulated SOL amount (replace with actual swap amount) ), &[ ctx.accounts.program_wallet.to_account_info(), user.to_account_info(), system_program.to_account_info(), ], )?; } Ok(()) } } #[derive(Accounts)] pub struct SwapTokensToSol<'info> { #[account(mut)] pub user: Signer<'info>, /// CHECK: Program wallet for SOL transfers pub program_wallet: AccountInfo<'info>, #[account(mut)] pub program_token_account: Account<'info, TokenAccount>, pub token_program: Program<'info, Token>, pub system_program: Program<'info, System>, } #[error_code] pub enum ErrorCode { #[msg("Invalid input data.")] InvalidInput, #[msg("Token account does not match mint address.")] InvalidTokenAccount, }
3
2
10
906
$PET is well and truly alive and will thrive in coming days when you expect the least
7
4
25
1,215
GM $PET fam! not far away from a lot of action
This quoted post is unavailable.
15
17
25
1,903
$PET just became 50% more valuable now
This quoted post is unavailable.
7
13
33
2,640
All program operations work. I am ready for Launch! Features are also in the pipeline and we will be adding them one by one and on demand. Please care about FOMO and don’t actually FOMO. @solanaDOTfun @STACCoverflow @theletzgodude
8
10
52
2,628
$PET is powering up
This Post is from an account that no longer exists. Learn more
3
3
33
1,804
get ready $PET gang
This quoted post is unavailable.
5
10
48
2,198
$PET is the OG
This Post is from an account that no longer exists. Learn more
1
5
1
30
1,595
Little does everyone realize 1% protocol revenue is much more than 1/4 the shit coin casino revenue alone study the lore $Pet
Little does everyone realize 1% protocol revenue is much more than 1/4 the shit coin casino revenue alone Pet
4
10
36
4,032
This is finalized! $PET now receives 1% of total revenue from both models; fomo launchpad and gobbler
This quoted post is unavailable.
7
11
2
44
4,501
Do no heed to needless noise stay locked on what matters $PET
5
12
1
35
2,781
set remindooors $PET gang
This Post is from an account that no longer exists. Learn more
3
7
24
3,207
The lore goes on $PET
We are excited to announce the audit completion of the Gobber DEX by @FOMO3DdotAPP This is a special one as our CEO @madinterndude took over the project halfway through, and we call the audit a Goldit. It documents both the Gobbler swap logic and the math behind it alongside our usual vulnerability analysis.
6
14
45
3,064
GM $PET fam! steady lads
20
9
41
1,888
$PET mentioned 👀
Try submitting x-ray, PET, MRI or other medical images to Grok for analysis. This is still early stage, but it is already quite accurate and will become extremely good. Let us know where Grok gets it right or needs work.
4
9
1
30
2,448