Skip to content

Instantly share code, notes, and snippets.

View maxencerb's full-sized avatar
🏠
Working from home

Maxence Raballand maxencerb

🏠
Working from home
View GitHub Profile
import { Mangrove } from "@mangrovedao/mangrove.js";
import { ethers } from "ethers";
import {
createWalletClient,
http,
publicActions,
type Hex,
} from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { blast } from "viem/chains";
import {
createPublicClient,
http,
type Address,
parseAbi,
type ContractFunctionParameters,
type ContractFunctionReturnType,
getContractAddress,
keccak256,
encodePacked,
@maxencerb
maxencerb / pos-select-miner.py
Created November 30, 2021 15:54
Gist for an article about POS
import matplotlib.pyplot as plt
import numpy as np
AGE_MIN = 10
T = 1000
STAKES = [10, 20]
BASE_AGE = [5, 3]
t_max = 15
def fun(t, s):