This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let position_account = utils::get_zero_copy_account::<Position>(program_test_ctx, *position_pda).await; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ================================================================ | |
| // =========== PART 1 | |
| // ================================================================ | |
| // | |
| // Fetch tokens prices from URL and calculate the average price | |
| // | |
| async function fetchPrice(url: string): Promise<string> { | |
| const response = await fetch(url); |