Transaction Hash:
Block:
12169600 at Apr-03-2021 11:29:28 PM +UTC
Transaction Fee:
0.002175978 ETH
$7.48
Gas Used:
21,126 Gas / 103 Gwei
Emitted Events:
356 |
ForceProfitSharing.Transfer( from=[Sender] 0xad7d50d88dcfec80d97892469ad19b23997e6e54, to=0x2cc3267a8CcBbEcbe18799182566a6B1c3b1daEe, value=221390000000000000000 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x5A0b54D5...D3E029c4c
Miner
| (Spark Pool) | 105.043805102398921924 Eth | 105.045981080398921924 Eth | 0.002175978 | |
0xaD7D50D8...3997E6E54 |
28.608328575118157676 Eth
Nonce: 122
|
28.606152597118157676 Eth
Nonce: 123
| 0.002175978 | ||
0xe7f445B9...E930A58E6 |
Execution Trace
ForceProfitSharing.transfer( recipient=0x2cc3267a8CcBbEcbe18799182566a6B1c3b1daEe, amount=221390000000000000000 ) => ( True )
transfer[ERC20 (ln:274)]
_transfer[ERC20 (ln:275)]
sub[ERC20 (ln:363)]
add[ERC20 (ln:364)]
Transfer[ERC20 (ln:365)]
_msgSender[ERC20 (ln:275)]
1234567891011121314151617181920212223242526pragma solidity 0.5.16;import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol";import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20.sol";import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20Detailed.sol";import "@openzeppelin/contracts-ethereum-package/contracts/utils/ReentrancyGuard.sol";contract ForceProfitSharing is ERC20, ERC20Detailed, ReentrancyGuard {using SafeMath for uint256;IERC20 public force;event Withdraw(address indexed beneficiary, uint256 amount);event Deposit(address indexed beneficiary, uint256 amount);// Define the Force token contractconstructor(address _underlying) public {force = IERC20(_underlying);ERC20Detailed.initialize("xFORCE","xFORCE",ERC20Detailed(_underlying).decimals());ReentrancyGuard.initialize();}function deposit(uint256 amount) external nonReentrant {// Gets the amount of Force locked in the contractuint256 totalForce = force.balanceOf(address(this));// Gets the amount of xForce in existence