???
This commit is contained in:
parent
43e4af4eb1
commit
a3255fe6c5
|
@ -72,6 +72,10 @@
|
|||
"0x380d1fdd01cac4effd59d4a2b82246f9971f65ce4b0abbd0c8158a84375cc36a": {
|
||||
"name": "Meritocracy",
|
||||
"address": "0x755f52Afe8166011B978aE142465c25b9D3F9ab3"
|
||||
},
|
||||
"0xbc4cdf618077fe963006a9927c9981f7c83011ab64abc40b4c0e8a2b95bb969b": {
|
||||
"name": "Meritocracy",
|
||||
"address": "0x68B8c6cB36B5E476Bb31598C82D91810cda740B8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ contract Meritocracy {
|
|||
Contributor memory cAllocator = contributors[msg.sender];
|
||||
// Requirements
|
||||
require(cAllocator.addr == msg.sender); // is sender a Contributor?
|
||||
// require(ERC20Token(token).transferFrom(msg.sender, address(this), _amount)); // TODO fix this, check balance Contributor has funds to allocate
|
||||
require(ERC20Token(token).transferFrom(msg.sender, address(this), _amount));
|
||||
// Body
|
||||
// cAllocator.inPot = true;
|
||||
individualAmount = _amount / registry.length;
|
||||
|
@ -125,7 +125,7 @@ contract Meritocracy {
|
|||
registry.push(_contributor);
|
||||
}
|
||||
|
||||
// Add Multiple Contributors to Tegistry in one tx
|
||||
// Add Multiple Contributors to the Registry in one tx
|
||||
function addContributors(address[] calldata _newContributors ) external {
|
||||
// Requirements
|
||||
require(registry.length + _newContributors.length <= maxContributors);
|
||||
|
|
Loading…
Reference in New Issue