Transaction Hash:
Block:
14791942 at May-17-2022 10:10:38 AM +UTC
Transaction Fee:
0.00121220509092804 ETH
$4.39
Gas Used:
46,530 Gas / 26.052118868 Gwei
Emitted Events:
195 |
BoneToken.Approval( owner=[Sender] 0x1d3d083dbedbc1f3741ed8301fa601f03886dd94, spender=0xf7A03837...3790202b3, value=115792089237316195423570985008687907853269984665640564039457584007913129639935 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x1d3D083d...03886DD94 |
0.042597138304856959 Eth
Nonce: 39
|
0.041384933213928919 Eth
Nonce: 40
| 0.00121220509092804 | ||
0x9813037e...6778218d9 | |||||
0xEA674fdD...16B898ec8
Miner
| (Ethermine) | 1,086.812116185996938832 Eth | 1,086.812209245996938832 Eth | 0.00009306 |
Execution Trace
BoneToken.approve( spender=0xf7A0383750feF5AbaCe57cc4C9ff98e3790202b3, amount=115792089237316195423570985008687907853269984665640564039457584007913129639935 ) => ( True )
approve[ERC20 (ln:332)]
_approve[ERC20 (ln:333)]
Approval[ERC20 (ln:461)]
_msgSender[ERC20 (ln:333)]
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity 0.6.12;import "@openzeppelin/contracts/token/ERC20/ERC20.sol";import "@openzeppelin/contracts/access/Ownable.sol";// BoneToken with Governance.contract BoneToken is ERC20("BONE SHIBASWAP", "BONE"), Ownable {/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (TopDog).function mint(address _to, uint256 _amount) public onlyOwner {_mint(_to, _amount);_moveDelegates(address(0), _delegates[_to], _amount);}function _transfer(address sender, address recipient, uint256 amount) internal override {super._transfer(sender, recipient, amount);_moveDelegates(_delegates[sender], _delegates[recipient], amount);}// Copied and modified from YAM code:// https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol// https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol// Which is copied and modified from COMPOUND:// https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol/// @dev A record of each accounts delegatemapping (address => address) internal _delegates;/// @notice A checkpoint for marking number of votes from a given blockstruct Checkpoint {uint32 fromBlock;uint256 votes;