Skip to content

Instantly share code, notes, and snippets.

View sakulstra's full-sized avatar
:octocat:
tl;dr;

Lukas sakulstra

:octocat:
tl;dr;
View GitHub Profile
@sakulstra
sakulstra / positions.sh
Created January 18, 2024 14:30
aave v1 positions
Info[0x971463F9046BBFF53302781f5E6f1041a32d11aD]: Contract, Collateral 2.242724454124864001, Borrows 1.001805001126329568, HF: 1.768560065847805776
Info[0x9A3B2cbCF9C40DF88269159DD7Be5A528A48f831]: EOA, Collateral 0, Borrows 1.023421787955000488, HF: 0
Info[0x532bFa53ca4Bfb6362a717Bd68cE5AA94B3d4287]: EOA, Collateral 1.82017663346865193, Borrows 1.038297792959646973, HF: 1.402431283826791194
Info[0x72B8cD2CA9ECcf2792ebF4e14026e257C33E3E77]: EOA, Collateral 7.624375786632509198, Borrows 1.043831010939746705, HF: 5.843378949881587586
Info[0x2024e3b7d91b60672aE39654D2883423Fa979265]: EOA, Collateral 1.481967468238265158, Borrows 1.058765156680519697, HF: 1.105773355423616647
Info[0x2A25Ea7f6f6e82957e7ca223f229a3B4516A8579]: EOA, Collateral 1.486105470822967986, Borrows 1.070736699192230728, HF: 1.082571266737002575
Info[0xB6D7F19629A6d6aC79Fd2e1b95AC218d1C6fd26B]: EOA, Collateral 1.834628276586058608, Borrows 1.077206446800506814, HF: 1.207010697609306995
Info[0x01975a07D85f8Ec242e46241086889F2CfeD9390]: EOA, Co
@sakulstra
sakulstra / gauntlet.md
Last active April 29, 2023 13:57
tooling

Hey,had a closer look at gauntlet pr: https://github.com/GauntletNetworks/aave-proposals/pull/2/files

  • generate generates the proposal/tests/scripts based on a supplied ts https://github.com/GauntletNetworks/aave-proposals/pull/2/files#diff-45b18505dc9d6a005ade2f483af09d6387ad8248437b2a44d902ad0c675e5f78R1. This seems a bit different to what we started with. Instead of having another "config" artifact generating the proposal our appraoch was to have essentially a prompt asking you what you want & generating the proposal based on that.
    • the advantage of gauntlet approach is that it's easily reproducible/deterministic and you can change the config to then change the proposal & tests. Also if you know the tooling it's faster than ours. The core idea is that you never touch the solidity code and only adjust it via the generator.
    • the advantage of our appraoch is that you don't need any knowledge about the system. The core idea is that you initialize via the generator and then adjust on top of that.

G

@sakulstra
sakulstra / report.md
Last active April 24, 2023 13:02
metis bugreport
@sakulstra
sakulstra / test.json
Created January 16, 2023 11:06
tenderly.json
{
"contract_id": "eth:10:0x4200000000000000000000000000000000000007",
"block_number": 55071081,
"transaction_id": "0x790c6339fa10916f9ec268243e7324683c2ec8bd1c3ac50ac03c337e301b3963",
"contract_address": "0x4200000000000000000000000000000000000007",
"method": "relayMessage",
"parameters": null,
"intrinsic_gas": 25276,
"refund_gas": 2800,
"call_trace": {
@sakulstra
sakulstra / diff.patch
Created July 15, 2022 12:28
folder diff
```diff
diff --git a/src/etherscan/0x7b2a3cf972c3193f26cdec6217d27379b6417bd0/AToken/@aave/protocol-v2/contracts/dependencies/openzeppelin/contracts/Address.sol b/src/etherscan/0xB2f4Fb41F01CdeF7c10F0e8aFbeB3cFA79d1686F/DelegationAwareAToken/contracts/dependencies/openzeppelin/contracts/Address.sol
similarity index 100%
rename from src/etherscan/0x7b2a3cf972c3193f26cdec6217d27379b6417bd0/AToken/@aave/protocol-v2/contracts/dependencies/openzeppelin/contracts/Address.sol
rename to src/etherscan/0xB2f4Fb41F01CdeF7c10F0e8aFbeB3cFA79d1686F/DelegationAwareAToken/contracts/dependencies/openzeppelin/contracts/Address.sol
diff --git a/src/etherscan/0x7b2a3cf972c3193f26cdec6217d27379b6417bd0/AToken/@aave/protocol-v2/contracts/dependencies/openzeppelin/contracts/Context.sol b/src/etherscan/0xB2f4Fb41F01CdeF7c10F0e8aFbeB3cFA79d1686F/DelegationAwareAToken/contracts/dependencies/openzeppelin/contracts/Context.sol
similarity index 100%
rename from src/etherscan/0x7b2a3cf972c3193f26cdec6217d27379b6417bd0/AToken/@aave/protoco
AaveV3HarmonyTestnet 0x85C1F3f1bB439180f7Bfda9DFD61De82e10bD554 0xdb903B5a28260E87cF1d8B56740a90Dba1c8fe15 0x29Ff3c19C6853A0b6544b3CC241c360f422aBaD1 0x77c45699A715A64A7a7796d5CEe884cf617D5254 0x77c45699A715A64A7a7796d5CEe884cf617D5254 0x1758d4e6f68166C4B2d9d0F049F33dEB399Daa1F 0xFc7215C9498Fc12b22Bc0ed335871Db4315f03d3 0x302567472401C7c7B50ee7eb3418c375D8E3F728 0xF5C62a60A2065D34b601CAfF8775F5A2857A9088 0x88d8a116C758C782985DAD67798666e270F0F1a8 0xDD81Dec96a2e4c5221fe11854a32F37C49C1a72A 0xBaaCc99123133851Ba2D6d34952aa08CBDf5A4E4 0xd5Bc03707A290BAaB91FeFBAf397Fe90EE48Cc39 0xE052c9c02cd4949832cAC20A91B8cf7C59cDd93b 0x2DE29943BbFA3740C1C3C9532E61e3489b2f742A 0xFCadBDefd30E11258559Ba239C8a5A8A8D28CB00 0xf58153a81DbC7118a8Ad128024996E68dcDEE8B2 0x7C50b2Fb765D77547B7a9F44364308FeEE7526D6 0x6bA6869B3B16a2478EAc78010e4c0DB534Fd79F2 0xc1eB89DA925cc2Ae8B36818d26E12DDF8F8601b0 0x9D6a5051882C1DFA7d26Cb862a13843c1fe0EF0A 0x478FE510965e607C95EB52c91FB711c8006483B9 0x4953fFBeD89EfE9DC6B4Fe51f74924D6A9b7Ce4e 0x5343b5bA672A
@sakulstra
sakulstra / hindi.json
Created May 18, 2020 07:58
node-slug hindi&mandarin
{ "अ": "a",
"आ": "aa",
"ए": "e",
"ई": "ii",
"ऍ": "ei",
"ऎ": "ae",
"ऐ": "ai",
"इ": "i",
"ओ": "o",
"ऑ": "oi",
export default function Alternate({
reverse,
}) {
const classes = useStyles();
return (
<Grid container spacing={4} alignItems="center" className={classes.root}>
<Box clone order={{ sm: 1, ...(reverse ? { md: 2 } : {}) }}>
<Grid item sm={12} md={6} style={{ textAlign: "center" }}>
</Grid>
</Box>
# taken from https://ubuntuforums.org/showthread.php?t=2022316
# rename rename
exiftool '-filename<CreateDate' -d %y%m%d_%H%M%S%%-c.%%le -r -ext JPG ./
# resize images
mkdir resized
mogrify -path resized -resize 1920x1080 *.jpg
cd resized
#generate video
ffmpeg -r 25 -pattern_type glob -i '*.jpg' -c:v copy output.avi
# compress video
@sakulstra
sakulstra / mobx-infinte-scroll-store.js
Created April 26, 2017 17:30
using mobx for an infinite scroll with meteor
class Store{
@observable limit = 20
@observable isLoading = false
@observable data = observable({})
constructor() {
autorun(() => this.subscribe())
}
subscribe = () => {