ETH Price: $3,438.92 (+1.58%)

Transaction Decoder

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:

Account State Difference:

  Address   Before After State Difference Code
(Spark Pool)
105.043805102398921924 Eth105.045981080398921924 Eth0.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 )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pragma 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 contract
constructor(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 contract
uint256 totalForce = force.balanceOf(address(this));
// Gets the amount of xForce in existence
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX