Skip to content

Instantly share code, notes, and snippets.

View adrena-orex's full-sized avatar

Orex adrena-orex

View GitHub Profile
Objective:
Votex.so , Solanas only votes market focused on building solutions for Solana DAO projects, is aiming to establish a long-term collaboration between Adrena and Votex - to launch a Liquid Governance Token (LGT) for ADX, vxADX, which is a liquid version of staked ADX and is interest accruing from ADX protocol revenue share rewards.
Overview:
Votex.so is building the first-ever vote market (ie DAO token market) infrastructure on Solana, launching initially with votes markets for SolBlaze and SaberDAO.
As the next step, Votex will introduce a Liquid Governance Token (LGT) system - a tokenized version of a locked governance token, that carries with it protocol rev share.
@adrena-orex
adrena-orex / example.rs
Created January 1, 2025 12:17
Display how to load a zero_copy account in rust integration test
let position_account = utils::get_zero_copy_account::<Position>(program_test_ctx, *position_pda).await;
@adrena-orex
adrena-orex / Cargo.toml
Last active January 14, 2025 18:26
Track instruction computing unit consumption and size in Rust integration tests
# Only package specifics to tracking
[dev-dependencies]
colored = "=2.2.0" # Bring some colors to the terminal
ctor = "=0.2.9" # Used to execute a function when tests finishes
once_cell = "=1.20.2"
lazy_static = "=1.5.0"
// ================================================================
// =========== PART 1
// ================================================================
//
// Fetch tokens prices from URL and calculate the average price
//
async function fetchPrice(url: string): Promise<string> {
const response = await fetch(url);