Skip to content

Instantly share code, notes, and snippets.

# Ethereum helper methods
# source this in your .bashrc or .zshrc file with `. ~/.ethrc`
# --- Token addresses ---
aave=0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9
comp=0xc00e94Cb662C3520282E6f5717214004A7f26888
crv=0xD533a949740bb3306d119CC777fa900bA034cd52
dai=0x6B175474E89094C44Da98b954EedeAC495271d0F
gtc=0xDe30da39c46104798bB5aA3fe8B9e0e1F348163F
mkr=0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2
@OliverNChalk
OliverNChalk / BenchmarkBug.js
Created September 15, 2020 10:33
Issue in Benchmark.js 2.1.4's setup function
const Benchmark = require("benchmark").Benchmark;
const perf_hooks = require("perf_hooks");
const lTestData = [];
for (let i = 0; i < 1000; ++i) {
lTestData.push(i);
}
function SyncCompute() {
const lResult = lTestData.map((aData) => (aData + Math.random()).toString());
0x2b2f82d1cbd4e226f5e7c9eb1f4020d4c7a6057d