
$PET: The first official launch on Fomo3d Ecosystem
Joined September 2024
- Tweets107
- Following5
- Followers482
- Likes126
the og petrushka we all know
dexscreener.com/solana/LVwuE…
7
4
1,444
EnmpsuDayDDA8N71VQXcZPhCzfMr1yt4SW4ivSSewn5C
good ol days $PET
dexscreener.com/solana/LVwuE…
EnmpsuDayDDA8N71VQXcZPhCzfMr1yt4SW4ivSSewn5C
2
802
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,
}
$PET is well and truly alive and will thrive in coming days when you expect the least
GM $PET fam!
not far away from a lot of action
This quoted post is unavailable.
$PET just became 50% more valuable now
This quoted post is unavailable.
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
$PET is powering up
This Post is from an account that no longer exists. Learn more
get ready $PET gang
This quoted post is unavailable.
Little does everyone realize 1% protocol revenue is much more than 1/4 the shit coin casino revenue alone
study the lore $Pet
This is finalized!
$PET now receives 1% of total revenue from both models; fomo launchpad and gobbler
This quoted post is unavailable.
set remindooors $PET gang
This Post is from an account that no longer exists. Learn more
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.
$PET mentioned 👀





