Skip to content

Instantly share code, notes, and snippets.

@hav-noms
hav-noms / WhitelistedStakingRewards.sol
Last active February 3, 2021 03:07
Limited LP Rewards
/*
____ __ __ __ _
/ __/__ __ ___ / /_ / / ___ / /_ (_)__ __
_\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
/___/
* RAC Liquidity Mooning Rewards by https://twitter.com/Cooopahtroopa
*
* Synthetix: WhitelistedStakingRewards.sol

Keybase proof

I hereby claim:

  • I am hav-noms on github.
  • I am clintsonchain (https://keybase.io/clintsonchain) on keybase.
  • I have a public key ASDJYZjT9Crh8q7NnRoH7OOCKA7aXCm9TWkEBV1ZURhKRQo

To claim this, I am signing this object:

@hav-noms
hav-noms / config.json
Created June 4, 2020 01:02
Synthetix v2.22 Altair Release Deploy config
{
"AddressResolver": {
"deploy": false
},
"ReadProxyAddressResolver": {
"deploy": false
},
"DelegateApprovals": {
"deploy": false
},
@hav-noms
hav-noms / SNXClaimerZap.sol
Last active September 17, 2020 02:52
Burn, Claim & Mint on behalf in 1 tx
pragma solidity >=0.4.22 <0.7.0;
interface ISynthetix {
function burnSynthsToTargetOnBehalf(address burnForAddress) external;
function issueMaxSynthsOnBehalf(address issueForAddress) external;
function remainingIssuableSynths(address issuer) external returns (uint256);
}
interface IFeePool {
function claimOnBehalf(address claimingForAddress) external;
@hav-noms
hav-noms / config.json
Last active March 30, 2020 06:04
Synthetix v2.21.x Hadar Release
{
"AddressResolver": {
"deploy": false
},
"ArbRewarder": {
"deploy": false
},
"DelegateApprovals": {
"deploy": true
},
@hav-noms
hav-noms / UpgradeSynthsAndSynthetix.json
Created February 20, 2020 07:46
UpgradeSynthsAndSynthetix
{
"AddressResolver": {
"deploy": false
},
"ArbRewarder": {
"deploy": false
},
"Depot": {
"deploy": false
},
@hav-noms
hav-noms / DappHelper.sol
Created February 20, 2020 04:56
DappHelper utility contract
/**
*Submitted for verification at Etherscan.io on 2020-02-14
*/
pragma solidity 0.4.25;
contract ISynth {
bytes32 public currencyKey;
function balanceOf(address owner) external view returns (uint);
}
contract ISynthetix {
@hav-noms
hav-noms / config.json
Last active February 20, 2020 03:35
Synthetix v2.19.x Achernar Release
{
"AddressResolver": {
"deploy": true
},
"ArbRewarder": {
"deploy": false
},
"Depot": {
"deploy": true
},
https://hackmd.io/SHPZJPSUTSW8se71CP_TBA#DAI
Rinkeby exchanges
Proxy https://rinkeby.etherscan.io/address/0xf6d3b6006d5d8f2ca477c16d93a75ae359782809
ProxyERC20 https://rinkeby.etherscan.io/address/0x466d5E8cd72dDd2c30d5e0E192fA2f05d79B9157
Rinkeby TokenExchanger
https://rinkeby.etherscan.io/address/0x0db354a4b99f9D3EbB360df008309B53Fb96Daac
@hav-noms
hav-noms / synthetix.exchange.api
Last active June 27, 2019 04:40
synthetix.exchange.api
HTTP API should cover the following:
1) Ticker (last done, bid, ask, 24h volume, 24h high, 24h low).
https://api.synthetix.io/api/exchange/ticker/susd-sbtc
2) OrderBook (list of asks and list of bids at least 100 levels).
N/A
3) Trades (X number of trades executed)
https://api.synthetix.io/api/exchange/transactions/susd-sbtc