my changes

This commit is contained in:
Moon 2021-02-04 16:01:25 -07:00
parent 54d1291b96
commit 7004aeaa39
4 changed files with 3249 additions and 6 deletions

View File

@ -24,7 +24,7 @@ contract ShinobiPool is IStakingRewards, RewardsDistributionRecipient, Reentranc
IERC20 public stakingToken; IERC20 public stakingToken;
uint256 public periodFinish = 0; uint256 public periodFinish = 0;
uint256 public rewardRate = 0; uint256 public rewardRate = 0;
uint256 public rewardsDuration = 7 days; uint256 public rewardsDuration = 1 days;
uint256 public lastUpdateTime; uint256 public lastUpdateTime;
uint256 public rewardPerTokenStored; uint256 public rewardPerTokenStored;

View File

@ -0,0 +1,11 @@
const ShinobiPool = artifacts.require("ShinobiPool");
module.exports = function (deployer) {
const owner = "0x3308a42bE3BCcE4c976B35AD5bA69253B5F2F83B"; // main new sparrow wallet
const rewardsDistributor = owner;
//const rewardsToken = "0x3E14f43717082139a9FfB8964078DD219F32213B"; // fool's grans
const rewardsToken = "0x0826180A4c981d5095Cb5c48BB2A098A44cf6f73"; // actual 10grans
const stakingToken = "0x6321C294f34C2CDAF61012Ac4f3588a527F4D990"; // ubq/grans lp token
deployer.deploy(ShinobiPool, owner, rewardsDistributor, rewardsToken, stakingToken);
};

View File

@ -7,6 +7,7 @@
"truffle": "^5.1.58" "truffle": "^5.1.58"
}, },
"dependencies": { "dependencies": {
"@openzeppelin/contracts": "2.5.0" "@openzeppelin/contracts": "2.5.0",
"@truffle/hdwallet-provider": "^1.2.1"
} }
} }

3239
yarn.lock

File diff suppressed because it is too large Load Diff