Skip to content

Instantly share code, notes, and snippets.

View Alexintosh's full-sized avatar
🧑‍🍳
Baking

Alessio Delmonti Alexintosh

🧑‍🍳
Baking
View GitHub Profile
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.8.0;
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
function approve(address spender, uint256 amount) external returns (bool);
}
interface ISharesTimeLock {
{"dataSet":[{"name":"COMP","coingeckoId":"compound-governance-token","sentimentScore":44,"RATIO":0.1768,"backtesting":{"returns":[0,0.031366788902186124,0.04119603040007707,-0.01687224661383154,0.08623152120675424,0.15837276104649045,0.1623703778837247,-0.1446188478248817,-0.012974187393372453,-0.0020524392536969025,0.0665482338772683,-0.025293814319337672,0.052702574814486286,0.06516572206604024,-0.04663269127183143,-0.07943820248326942,-0.027125196156123813,-0.007027078573010361,0.039559497839733775,-0.03545367367676913,-0.011469041106416543,0.007839931616566622,-0.0017634976673704548,-0.06653481467702049,-0.11461427595426246,0.14175011013029543,-0.09656314507711664,0.003907930668480584,0.008400474398664388,-0.005273896900913786,0.19193359301473906],"covariance":{"COMP":0.1932157534679027,"Aave":0.11864386634656571,"UNI":0.09604727871323143,"LINK":0.10813205762743223,"MKR":0.13151047600173654,"SNX":0.1446995670996416,"YFI":0.08522586237877072,"SUSHI":0.10578081271505936},"correlation":{"COMP":1,"Aave":0.660
const fs = require("fs");
const CoinGecko = require("coingecko-api");
const { table } = require("table");
const chalk = require("chalk");
const cg = new CoinGecko();
const coins = [
{ "id": "ethereum", "symbol": "ETH" },
{ "id": "bitcoin", "symbol": "BTC" },

A path to sustainable rewards

Token Rewards in DAOs and DeFi are a powerful tool, they allow projects to influence behaviour in such a way to achieve a positive outcome for the protocol. In the last few months, we have been seeing a number of DeFi projects using rewards mainly to incentivize liquidity provisioning into AMMs pools, while that is useful the vast majority of the protocols out there have been doing so by only inflating the circulating supply of the token which often results in continuous sell pressure for the token being rewarded.

Some outstanding example of these fact can be found in CRV and others. 
Rewards in order to last for a long time need to sustainable over time, with this goal in mind, in this proposal I want to sketch out a path for minimum viable rewards and sustainability.

In order to get to sustainability of rewards, those should be distributed in such a way to bring maximum value for the protocol itself and therefore token holders of the ecosystem. To make an example, right no

Description

Designers are responsible for the design and implementation of all the experiences a user has when interacting with a digital tool, such as a website., among other duties. Designers will be required to understand and see out a project from conception to final product, requiring good organizational skills and attention to detail.

Designers Responsibilities:

  • Developing and conceptualizing a comprehensive UI/UX design strategy for the brand.
  • Testing UI elements such as CTAs, banners, page layouts, page designs, page flows, and target links for landing pages.
  • Collaborating with the executive team, and internal and external designers to ensure the creation and delivery of tailored experiences for the digital user.
  • Developing front end website CSS and HTML.
  • Providing advice and guidance on the implementation of UX research methodologies and testing activities in order to analyze and predict user behavior.

Description

Full Stack Developers are responsible for developing backend solutions, smart contracts and designing front end web architecture, ensuring the responsiveness of applications and working alongside graphic designers for web design features, among other duties. Full Stack Developers will be required to see out a project from conception to final product, requiring good organizational skills and attention to detail.

Full Stack Developer Responsibilities:

  • Developing front end website architecture.
  • Developing back end website applications.
  • Creating servers and databases for functionality.
  • Ensuring cross-platform optimization for mobile phones.
@Alexintosh
Alexintosh / 1.js
Created December 22, 2019 13:32 — forked from mxriverlynn/1.js
Standard deviation, in JavaScript
var sum = values.reduce(function(sum, value){
return sum + value;
}, 0);
var avg = sum / data.length;
@Alexintosh
Alexintosh / iceage.py
Created December 18, 2019 17:20 — forked from lrettig/iceage.py
Simulation script for ice age block times
# Date, blocknum, difficulty as of 2019-01-18
# Script by vbuterin, slightly modified by lrettig
import random
import datetime
import sys
def calc_bomb(i):
period = i // 100000
if (period > 0):
# Subtract 2, this is the original formula
/* eslint-disable class-methods-use-this */
import isUndefined from 'lodash/isUndefined';
import findIndex from 'lodash/findIndex';
class Compound2 {
constructor(wallet) {
this.W = wallet;
this.cacheApi = null;
this.portfolio = [
@Alexintosh
Alexintosh / submit-dapp.md
Created May 3, 2019 14:58 — forked from dappvolume/submit-dapp.md
Submit Dapps to these sites for huge exposure!

Submit A Dapp

Once you create a dapp its important the dapp gets exposure. Here is a list of 20 places you can submit your Dapp.

Dapp Websites

The following websites showcases dapps ( decentralized applications ).

Name URL Platform