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
[{ | |
"address": "0xED0244B688cF059f32f45E38A6ac6E479D6755f6", | |
"name": "WETH yVault", | |
"symbol": "yvWETH", | |
"underlying_token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", | |
"underlying_token_name": "Wrapped Ether" | |
}, | |
{ | |
"address": "0xdCD90C7f6324cfa40d7169ef80b12031770B4325", | |
"name": "steCRV yVault", |
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
[{ | |
"address": "0xBFa4D8AA6d8a379aBFe7793399D3DdaCC5bBECBB", | |
"name": "DAI yVault", | |
"symbol": "yvDAI", | |
"underlying_token": "0x6B175474E89094C44Da98b954EedeAC495271d0F", | |
"underlying_token_name": "Dai Stablecoin" | |
}, | |
{ | |
"address": "0xe2F6b9773BF3A015E2aA70741Bde1498bdB9425b", | |
"name": "Yearn USDC Vault", |
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
from brownie import Contract, web3 | |
def develop_v1(): | |
results = [] | |
registry = Contract(web3.ens.resolve("registry.ychad.eth")) | |
vaults = registry.getVaults() | |
for vault in vaults: | |
contract = Contract(vault) | |
try: |
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
[{ | |
'address': '0x29E240CFD7946BA20895a7a02eDb25C210f9f324', | |
'name': 'yearn Aave Interest bearing LINK', | |
'symbol': 'yaLINK', | |
'underlying_token': '0xA64BD6C70Cb9051F6A9ba1F163Fdc07E0DfB5F84', | |
'underlying_token_name': 'Aave Interest bearing LINK' | |
}, | |
{ | |
'address': '0x881b06da56BB5675c54E4Ed311c21E54C5025298', | |
'name': 'yearn ChainLink Token', |
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
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n |
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
#!/bin/bash | |
# herein we backup our indexes! this script should run at like 6pm or something, after logstash | |
# rotates to a new ES index and theres no new data coming in to the old one. we grab metadatas, | |
# compress the data files, create a restore script, and push it all up to S3. | |
TODAY=`date +"%Y.%m.%d"` | |
INDEXNAME="logstash-$TODAY" # this had better match the index name in ES | |
INDEXDIR="/usr/local/elasticsearch/data/logstash/nodes/0/indices/" | |
BACKUPCMD="/usr/local/backupTools/s3cmd --config=/usr/local/backupTools/s3cfg put" | |
BACKUPDIR="/mnt/es-backups/" | |
YEARMONTH=`date +"%Y-%m"` |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Net; | |
using System.Reactive.Linq; | |
using System.Reflection; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; |