Skip to content

Instantly share code, notes, and snippets.

View stefanionescu's full-sized avatar
:octocat:
#BUIDLing

Stefan Ionescu stefanionescu

:octocat:
#BUIDLing
  • Earth
View GitHub Profile
@stefanionescu
stefanionescu / keybase.md
Created November 28, 2021 23:51
keybase.md

Keybase proof

I hereby claim:

  • I am stefanionescu on github.
  • I am drstoney (https://keybase.io/drstoney) on keybase.
  • I have a public key whose fingerprint is 1A33 3D92 E537 6564 B8F6 7B03 BAE4 8334 2515 FA1C

To claim this, I am signing this object:

@stefanionescu
stefanionescu / cosmwasm-contract-interface.rs
Created November 2, 2021 15:50
Interface for test CosmWasm smart contract
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use cosmwasm_std::Uint128;
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema)]
pub struct FundParameters {
pub owner: String,
pub penaltyReceiver: String,
pub penalty: u16,
@stefanionescu
stefanionescu / proto_rai_addresses.txt
Created February 28, 2021 17:22
List of addresses that interacted with Proto RAI
0x00000000b9d747ef42d224e572a5b7e6488929c8=30
0x000f4432a40560bbff1b581a8b7aded8dab80026=30
0x00290ffc9e9d19bda7b25c6e44d8adf55dfbf2dd=30
0x004537fcd9095489ebe38180a382341b962b501d=30
0x00a7115685d9d7007360c562c01ce72a1efb9a24=30
0x0154d25120ed20a516fe43991702e7463c5a6f6e=30
0x019882789983306222c4b4cab71258189fd92998=30
0x03d1ba09c6b93692cc5a2f17c3b1c5cba43b9500=30
0x051dce94b53dcf1f51af1d3bc14f615b87650424=30
0x056590f16d5b314a132bbcfb1283fec5d5c6e670=30
@stefanionescu
stefanionescu / proto_rai_users_script.sql
Created February 28, 2021 17:20
Script for detecting addresses that interacted with Proto RAI
SELECT DISTINCT address FROM (
(
# Query EOA that interacted with a specific list of contracts
SELECT tx.from_address as address
# Table including all Ethereum transactions
FROM bigquery-public-data.crypto_ethereum.transactions AS tx
# Date just before PRAI deployement
WHERE tx.block_timestamp > TIMESTAMP("2020-10-24 00:00:00+00")
# PRAI settlement block
AND tx.block_number <= 11724918
@stefanionescu
stefanionescu / flx_retro_distro_strategies.txt
Last active April 3, 2021 03:33
FLX retroactive rewards distributions
17th Feb 2021 1:50 PM GMT - 20th Feb 2021 10:25 PM GMT -- 100% Uniswap v2 RAI/ETH Liquidity Providers
20th Feb 2021 10:25 PM GMT - 26th Feb 2021 1:50 PM GMT -- 50% RAI minters, 50% Uniswap v2 RAI/ETH Liquidity Providers
26th Feb 2021 1:50 PM GMT - 8th March 2021 1:50 PM GMT -- 100% Uniswap v2 RAI/ETH Liquidity Providers
8th March 2021 1:50 PM GMT - Ongoing -- 100% Mint + LP (https://docs.reflexer.finance/incentives/rai-mint-+-lp-incentives-program)
@stefanionescu
stefanionescu / geb-console-global-settlement
Created January 12, 2021 13:21
Redeeming ETH with Proto RAI Using geb-console
npm i -g @reflexer-finance/geb-console@latest
geb-console mainnet
proxy = await geb.getProxyAction("<Your ETH address>")
// Part I, withdraw execess collateral from a Safe:
await geb.getSafeFromOwner("<Your ETH address>")
tx = proxy.freeTokenCollateralGlobalSettlement(geb.contracts.joinETH_A.address, <Your Safe ID>)
metamask(tx)
// Part II, redeem collateral against you PRAI:
@stefanionescu
stefanionescu / geb-console-gist
Last active October 31, 2020 21:53
Open a Safe and create RAI using the GEB CLI
npm i -g @reflexer-finance/geb-console
geb-console kovan
tx = geb.deployProxy()
metamask(tx)
proxy = await geb.getProxyAction("<Your Ethereum address>")
tx = proxy.openLockETHAndGenerateDebt(wad(1), ETH_A, wad(100))
metamask(tx)