Skip to content

Instantly share code, notes, and snippets.

View jordaniza's full-sized avatar
🎲
All In

Jordan jordaniza

🎲
All In
View GitHub Profile
@jordaniza
jordaniza / tree.sh
Created September 1, 2022 12:30
tree /boot
/boot
|-- EFI
|-- efi
|-- grub
| |-- fonts
| | `-- unicode.pf2
| |-- grub.cfg
| |-- grubenv
| |-- locale
| | |-- ast.mo
@jordaniza
jordaniza / mounted_tree.sh
Created September 1, 2022 12:35
tree /boot after mount /dev/nvme0n1p1 /mnt/boot/efi
/boot
|-- EFI
|-- efi
| `-- EFI
| |-- BOOT
| | `-- BOOTX64.EFI
| |-- GRUB
| | `-- grubx64.efi
| `-- grub_uefi
| `-- grubx64.efi
@jordaniza
jordaniza / Flattened.sol
Created May 7, 2024 17:08
Flattened version of DAO.sol using yarn hardhat flatten
// Sources flattened with hardhat v2.22.3 https://hardhat.org
// SPDX-License-Identifier: AGPL-3.0-or-later AND MIT
// File @openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol@v4.9.5
// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)
pragma solidity ^0.8.0;

This working document aims to give a brief overview of how Aragon can architect a RISC-0 application for Zk voting.

Overview of a RISC-0 application

In this section we distill the elements of the RISC-0 toolchain relevant for our application.

CLICK TO OPEN IN A BROWSER

image

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC165, IERC721, IERC721Metadata} from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import {IERC6372} from "@openzeppelin/contracts/interfaces/IERC6372.sol";
import {IERC4906} from "@openzeppelin/contracts/interfaces/IERC4906.sol";
import {IVotes} from "./IVotes.sol"; // modified ivotesish interface for dynamic voting
/*///////////////////////////////////////////////////////////////
CORE FUNCTIONALITY
@jordaniza
jordaniza / Start.t.sol
Created September 18, 2024 13:27
Check When We start
pragma solidity ^0.8.17;
import {Test, console2 as console} from "forge-std/Test.sol";
import {Clock} from "src/clock/Clock.sol";
contract TestWhenWeStart is Test {
Clock clock;
function setUp() public {
clock = new Clock();
@jordaniza
jordaniza / risc0.nix
Last active April 14, 2025 15:03
FHS Shell env for running rzup and cargo-risczero
{
description = "Dev shell with rzup and RISC Zero FHS compatibility";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
@jordaniza
jordaniza / Aerodrome-TWAP-Oracle-Implementation-Guide.md
Created September 15, 2025 15:59
Aerodrome TWAP Oracle Implementation Guide - Comprehensive analysis of TWAP functionality and price oracle usage

Aerodrome TWAP Oracle Implementation Guide

Overview

Aerodrome implements a Time-Weighted Average Price (TWAP) oracle directly within its liquidity pool contracts, providing a decentralized and manipulation-resistant price feed mechanism. This document provides a comprehensive analysis of the TWAP functionality and how to reliably use Aero pools as price oracles.

TWAP Architecture

Core Data Structures

@jordaniza
jordaniza / AERO-Token-Minting-Deep-Dive.md
Last active October 24, 2025 12:01
AERO Token: Complete Tokenomics, Minting, and Rebase Analysis

AERO Token: Complete Tokenomics and Minting Analysis

Executive Summary

The AERO token implements a sophisticated emission system designed to bootstrap liquidity while protecting long-term token holders through an anti-dilution "rebase" mechanism. The protocol transitions through growth, decay, and tail emission phases, with a unique feature that mints additional tokens specifically to compensate veNFT holders for dilution. This document provides a comprehensive analysis of the minting mechanics, emission schedule, and the rebase system.

Table of Contents

  1. Core Architecture
  2. Emission Schedule
@jordaniza
jordaniza / Exogenous-Token-Integration-Considerations.md
Created September 15, 2025 16:02
Considerations for Injecting an Exogenous Token into Aerodrome

Considerations for Injecting an Exogenous Token into Aerodrome

Executive Summary

Replacing the native AERO token with an exogenous token in Aerodrome is technically feasible due to the protocol's modular architecture. However, this integration requires careful consideration of interface compatibility, minting mechanisms, governance implications, and economic effects. This document provides a comprehensive analysis of all considerations for such an integration.

Technical Requirements

1. Interface Compatibility