Skip to content

Instantly share code, notes, and snippets.

View JamesEarle's full-sized avatar

James Earle JamesEarle

View GitHub Profile

Abstract

zFI introduces the notion of staking into the Wilder community. It allows holders to stake their WILD or their WILD <> ETH LP tokens, given by Uniswap for providing liquidity to the pool here. When staking, users earn rewards at a rate of XYZ%. Users are also optionally able to lock their stake for a maximum of a year for 2x rewards. When a stake is locked it means that it is inaccessible during the specified period. This period cannot be longer than 365 days from the time of staking. Rewards are processed automatically when a user makes a change to their position by either staking more or unstaking unlocked token. This sends their rewards to a token vault where they are then locked for one year from the time of redemption. When an amount of token has completed its lock period it will by default remain in the pool until redeemed by the user. Once a user has claimed their unlocked token back, it is moved out of the staking pools and into their wallet again.

Locking

When a user is creating a st

@JamesEarle
JamesEarle / Node.java
Last active August 29, 2015 14:01
WordCount - Count the repetitions of words throughout a .txt file while calculating runtime, printing to an Output.txt file the occurences from most frequent to least frequent. Example input uses Harry Potter books 1-7.
/* Node object contains a single string, as data, and a count
* of how many times that string has occurred in our input text.
*
* @author James Earle <je11zi@brocku.ca>
* @version 1.0
* @since 2014-05-10
*/
public class Node {
public String data;
@JamesEarle
JamesEarle / BSTAVL.java
Last active August 29, 2015 14:01
Measuring efficiency of BST vs. AVL trees
import java.util.Scanner;
import java.io.*;
/* COSC 2P03, Assignment 2
*
* Comparing the use of efficiency of storing data in a standard
* Binary Search Tree vs. an AVL tree.
*
* @author James Earle, je11zi@brocku.ca
* @version 2.0
@JamesEarle
JamesEarle / Bucket.java
Last active August 29, 2015 14:01
Use of Bucket Sort to emulate an extendible hash table with given input Strings converted into binary representation.
/* Bucket is used to store a number of Nodes, limit specified
* by user, in an array. To be be accessed and used through
* extendible hashing.
*
* @author James Earle <je11zi@brocku.ca>
* @version 1.0
* @since 2013-12-02
*/
public class Bucket {
@JamesEarle
JamesEarle / assign.pl
Created May 9, 2014 16:38
Making use of recursive Prolog predicates for list manipulation. COSC 2P93 Final Assignment.
% James Earle - je11zi@brocku.ca
% 5017843
%
% COSC 2P93 - Winter, 2014
% Assignment
% Question #1
% List of cities altered in accordance with question #5
cities([liverpool,preston,lancaster,carlisle,manchester,leeds,
toronto,brampton,markham,mississauga,
/*
* Date: March 21st, 2014
* Author: James Earle, 5017843
* Email: je11zi@brocku.ca
*
* COSC 2P91 - Procedural Programming
* Assign. 2, Section 2: Modelling Electronic Circuits
*
* The program below will read from file and simulate
* the effects of a Wheatstone Bridge, outputting the
/*
* Date: March 21st, 2014
* Author: James Earle, 5017843
* Email: je11zi@brocku.ca
*
* COSC 2P91 - Procedural Programming
* Assign. 2, Section 3: Solving Tricky Equations
*
* The program below will read in user input for the
* value of a, computing a*x and sin(x), and using
@JamesEarle
JamesEarle / linkedlist.adb
Created March 11, 2014 00:25
Generic, Circularly Linked List using Ada (with example client)
with
Ada.Text_IO,
Ada.Strings,
linkedlist;
use
Ada.Text_IO,
Ada.Strings;
------------------------------------------------------------------------
-- Author - James Earle, Std. #5017843
-- Email - je11zi@brocku.ca
@JamesEarle
JamesEarle / Comments.php
Last active August 29, 2015 13:56
The Drummers Throne - A musicians blog / forum. COSC 2P89 Final Project - Fall 2013 (Only main files included)
#!/usr/local/bin/php
<?php
// $con = DB CONNECTION HERE. Removed for security purposes.
if (array_key_exists('isThread',$_POST)) {
//We're coming from "Threads.php" get top value
if (array_key_exists('topPerc',$_POST)) {
$selectedPost = 'topPerc';
}
@JamesEarle
JamesEarle / RationalCalc.adb
Created February 11, 2014 17:27
Rational Number Calculator
with
Ada.Text_IO,
Ada.Strings,
Ada.Strings.Fixed,
RATIONALS;
use
Ada.Text_IO,
Ada.Strings,
Ada.Strings.Fixed,
RATIONALS;