Simple React UI/Solidity task
Budget: $30 – $250 USD
I am looking for solidity/react programmer,Dapp expert.
-- Project description
There is the list of 5 addresses and token amounts in a certain file.
I will provide this later.
What you need to write:
(1) Small Smart Contract where there will be addresses and the number of tokens attached to them
(1.1) Claim contract which have 2 functions and one mapping variable:
mapping (address => uint256) public rewards;
TestRewardToken private immutable _rewardToken;
function setRewards(address walletAddress, uint tokenAmount) external Onlyadmin {
require(tokenAMount > 0);
_rewardToken.mint(this.address, tokenAmount);
rewards[walletaddress] = tokenAmount;
emit
}
function claim() public {
require( rewards[msg.sender] > 0);
_rewardToken.transfer( msg.sender, rewards[msg.sender]);
emit;
}
(1.2) basic bep20 token for TestRewardToken
(2) On the front client must connect his metamask and:
(2.1) see the number of tokens on his balance
(2.2) claim any amount of tokens to his address from the smart contract address
(2.3) only the wallets among those five can claim tokens
Budget $100 and time is 6 hours.
Only apply if you can do this in time. Thanks
-- Project description
There is the list of 5 addresses and token amounts in a certain file.
I will provide this later.
What you need to write:
(1) Small Smart Contract where there will be addresses and the number of tokens attached to them
(1.1) Claim contract which have 2 functions and one mapping variable:
mapping (address => uint256) public rewards;
TestRewardToken private immutable _rewardToken;
function setRewards(address walletAddress, uint tokenAmount) external Onlyadmin {
require(tokenAMount > 0);
_rewardToken.mint(this.address, tokenAmount);
rewards[walletaddress] = tokenAmount;
emit
}
function claim() public {
require( rewards[msg.sender] > 0);
_rewardToken.transfer( msg.sender, rewards[msg.sender]);
emit;
}
(1.2) basic bep20 token for TestRewardToken
(2) On the front client must connect his metamask and:
(2.1) see the number of tokens on his balance
(2.2) claim any amount of tokens to his address from the smart contract address
(2.3) only the wallets among those five can claim tokens
Budget $100 and time is 6 hours.
Only apply if you can do this in time. Thanks