Verified contractPartial
Swap
Address0x0e8d33e90d2b32f36c335fa9d808f729a1815b86
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.4.24
- Same code
1 more contract
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 8,177,007
- Creation transaction
- 0xc7a14e20d6…768562a5c6
Swap.sol
pragma solidity >=0.4.22 <0.6.0;
interface collectible {
function transfer(address receiver, uint amount) external;
}
contract Swap {
collectible public swapaddress;
mapping(address => uint256) public balanceOf;
mapping(address => bool) public check;
event FundTransfer(address backer, uint amount, bool isContribution);
/**
* Constructor
*
* Setup the owner
*/
constructor(
address addressOfCollectibleUsedAsReward
) public {
swapaddress = collectible(addressOfCollectibleUsedAsReward);
}
function () payable external {
require(check[msg.sender] == false);
require(msg.value == 0 wei);
balanceOf[msg.sender] += 50000000;
swapaddress.transfer(msg.sender, 50000000);
check[msg.sender] = true;
}
}Compiler settingsShow
{
"optimizer": {
"runs": 0,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.