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
{ | |
"name": "saltswap", | |
"timestamp": "2020-08-25T15:41:29.665Z", | |
"version": { | |
"major": 1, | |
"minor": 3, | |
"patch": 1 | |
}, | |
"tags": {}, | |
"logoURI": "/images/coins/wbnb.png", |
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
{ | |
"contractName": "BUSD", | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "name", | |
"type": "string" | |
}, |
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
pragma solidity 0.5.7; | |
import "../zeppelin/token/ERC20/IERC20.sol"; | |
import "../zeppelin/math/SafeMath.sol"; | |
import "../ownership/Ownable.sol"; | |
import "./ReserveEternalStorage.sol"; | |
/** | |
* @title An interface representing a contract that calculates transaction fees | |
*/ |
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
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DevWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"issueIndex","type":"uint256"},{"indexed":false,"internalType":"uint8[4]","name":"winningNumbers","type":"uint8[4]"}],"name":"Drawing","type":"event"},{"anonymous":fals |
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
// Third-party | |
const fs = require('fs'); | |
const Web3 = require('web3'); | |
const schedule = require('node-schedule'); | |
const Lottery = require('../build/contracts/Lottery.json'); | |
const { privateKeys } = JSON.parse(fs.readFileSync('../.secret').toString().trim()); | |
const { mainnetPrivateKeys } = JSON.parse(fs.readFileSync('../.secret').toString().trim()); | |
const CHAIN_ID = 56; // mainnet |
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 clone https://github.com/suraneti/pancake-uikit && \ | |
cd pancake-uikit && yarn && yarn build && \ | |
rm -rf ../node_modules/@pancakeswap-libs/uikit/dist && \ | |
mv dist/ ../node_modules/@pancakeswap-libs/uikit/ && \ | |
cd .. && rm -rf pancake-uikit/ |
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
// File: contracts/libs/IBEP20.sol | |
pragma solidity >=0.4.0; | |
interface IBEP20 { | |
/** | |
* @dev Returns the amount of tokens in existence. | |
*/ |
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
// File: @openzeppelin/contracts/math/SafeMath.sol | |
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.6.0 <0.8.0; | |
/** | |
* @dev Wrappers over Solidity's arithmetic operations with added overflow | |
* checks. | |
* |
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
pragma solidity ^0.5.0; | |
/** | |
* @title SimpleTimelock | |
* @dev SimpleTimelock is an ETH holder contract that will allow a | |
* beneficiary to receive the ETH after a given release time. | |
*/ | |
contract SimpleTimelock { |
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
import BigNumber from 'bignumber.js' | |
import erc20 from 'config/abi/erc20.json' | |
import masterchefABI from 'config/abi/masterchef.json' | |
import multicall from 'utils/multicall' | |
import { getAddress, getMasterChefAddress } from 'utils/addressHelpers' | |
import farmsConfig from 'config/constants/farms' | |
const fetchFarms = async () => { | |
const data = await Promise.all( | |
farmsConfig.map(async (farmConfig) => { |