Revert "First Ceiling SGT Holders up to limit"
This commit is contained in:
parent
2e7913d576
commit
6f1a01184a
|
@ -40,7 +40,6 @@ contract StatusContribution is Owned, TokenController {
|
||||||
uint256 constant public failSafe = 300000 ether;
|
uint256 constant public failSafe = 300000 ether;
|
||||||
uint256 constant public exchangeRate = 10000;
|
uint256 constant public exchangeRate = 10000;
|
||||||
uint256 constant public maxGasPrice = 50000000000;
|
uint256 constant public maxGasPrice = 50000000000;
|
||||||
uint256 constant public limitSGT = 30 ether;
|
|
||||||
|
|
||||||
MiniMeToken public SGT;
|
MiniMeToken public SGT;
|
||||||
MiniMeToken public SNT;
|
MiniMeToken public SNT;
|
||||||
|
@ -59,7 +58,6 @@ contract StatusContribution is Owned, TokenController {
|
||||||
|
|
||||||
mapping (address => uint256) public guaranteedBuyersLimit;
|
mapping (address => uint256) public guaranteedBuyersLimit;
|
||||||
mapping (address => uint256) public guaranteedBuyersBought;
|
mapping (address => uint256) public guaranteedBuyersBought;
|
||||||
mapping (address => uint256) public sgtCollected;
|
|
||||||
|
|
||||||
uint256 public totalGuaranteedCollected;
|
uint256 public totalGuaranteedCollected;
|
||||||
uint256 public totalNormalCollected;
|
uint256 public totalNormalCollected;
|
||||||
|
@ -216,15 +214,6 @@ contract StatusContribution is Owned, TokenController {
|
||||||
toFund = toCollect;
|
toFund = toCollect;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint256 currentIndex = dynamicCeiling.currentIndex();
|
|
||||||
if (currentIndex == 0) {
|
|
||||||
require(SGT.balanceOf(_th) > 0);
|
|
||||||
if (sgtCollected[_th].add(toFund) > limitSGT) {
|
|
||||||
toFund = limitSGT.sub(sgtCollected[_th]);
|
|
||||||
}
|
|
||||||
sgtCollected[_th] = sgtCollected[_th].add(toFund);
|
|
||||||
}
|
|
||||||
|
|
||||||
totalNormalCollected = totalNormalCollected.add(toFund);
|
totalNormalCollected = totalNormalCollected.add(toFund);
|
||||||
doBuy(_th, toFund, false);
|
doBuy(_th, toFund, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,7 @@ contract("DynamicCeiling", (accounts) => {
|
||||||
web3.sha3("pwd0"),
|
web3.sha3("pwd0"),
|
||||||
web3.sha3("pwd1"),
|
web3.sha3("pwd1"),
|
||||||
web3.sha3("pwd2"),
|
web3.sha3("pwd2"),
|
||||||
]
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.equal(await dynamicCeiling.currentIndex(), 0);
|
assert.equal(await dynamicCeiling.currentIndex(), 0);
|
||||||
|
|
Loading…
Reference in New Issue