Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
1,105 ibff
Holders
120
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.00000789969331918 ibffValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ibff
Compiler Version
v0.8.6+commit.11564f7e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-07-23 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.6; contract ibff { string public constant name = "Iron Bank Fixed Forex"; string public constant symbol = "ibff"; uint8 public constant decimals = 18; address public gov; address public nextgov; uint public commitgov; uint public constant delay = 1 days; constructor() { gov = msg.sender; } modifier g() { require(msg.sender == gov); _; } function setGov(address _gov) external g { nextgov = _gov; commitgov = block.timestamp + delay; } function acceptGov() external { require(msg.sender == nextgov && commitgov < block.timestamp); gov = nextgov; } /// @notice Total number of tokens in circulation uint public totalSupply = 0; mapping(address => mapping (address => uint)) internal allowances; mapping(address => uint) internal balances; event Transfer(address indexed from, address indexed to, uint amount); event Approval(address indexed owner, address indexed spender, uint amount); function mint(address dst, uint amount) external g { // mint the amount totalSupply += amount; // transfer the amount to the recipient balances[dst] += amount; emit Transfer(address(0), dst, amount); } function allowance(address account, address spender) external view returns (uint) { return allowances[account][spender]; } function approve(address spender, uint amount) external returns (bool) { allowances[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function balanceOf(address account) external view returns (uint) { return balances[account]; } function transfer(address dst, uint amount) external returns (bool) { _transferTokens(msg.sender, dst, amount); return true; } function transferFrom(address src, address dst, uint amount) external returns (bool) { address spender = msg.sender; uint spenderAllowance = allowances[src][spender]; if (spender != src && spenderAllowance != type(uint).max) { uint newAllowance = spenderAllowance - amount; allowances[src][spender] = newAllowance; emit Approval(src, spender, newAllowance); } _transferTokens(src, dst, amount); return true; } function _transferTokens(address src, address dst, uint amount) internal { balances[src] -= amount; balances[dst] += amount; emit Transfer(src, dst, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"acceptGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"commitgov","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextgov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600060035534801561001557600080fd5b50600080546001600160a01b0319163317905561079a806100376000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80636a42b8f811610097578063a9059cbb11610066578063a9059cbb1461025d578063cfad57a214610270578063dd62ed3e14610283578063f94e4e80146102bc57600080fd5b80636a42b8f8146101ff57806370a08231146102095780637bc6729b1461023257806395d89b411461023a57600080fd5b80632196bcd7116100d35780632196bcd7146101b457806323b872dd146101bd578063313ce567146101d057806340c10f19146101ea57600080fd5b806306fdde0314610105578063095ea7b31461014f57806312d43a511461017257806318160ddd1461019d575b600080fd5b61013960405180604001604052806015815260200174092e4dedc4084c2dcd6408cd2f0cac8408cdee4caf605b1b81525081565b60405161014691906106ca565b60405180910390f35b61016261015d3660046106a0565b6102cf565b6040519015158152602001610146565b600054610185906001600160a01b031681565b6040516001600160a01b039091168152602001610146565b6101a660035481565b604051908152602001610146565b6101a660025481565b6101626101cb366004610664565b61033b565b6101d8601281565b60405160ff9091168152602001610146565b6101fd6101f83660046106a0565b610402565b005b6101a66201518081565b6101a661021736600461060f565b6001600160a01b031660009081526005602052604090205490565b6101fd6104a2565b6101396040518060400160405280600481526020016334b1333360e11b81525081565b61016261026b3660046106a0565b6104ea565b6101fd61027e36600461060f565b610500565b6101a6610291366004610631565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b600154610185906001600160a01b031681565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061032a9086815260200190565b60405180910390a350600192915050565b6001600160a01b03831660008181526004602090815260408083203380855292528220549192909190821480159061037557506000198114155b156103eb5760006103868583610737565b6001600160a01b038881166000818152600460209081526040808320948916808452948252918290208590559051848152939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b6103f6868686610545565b50600195945050505050565b6000546001600160a01b0316331461041957600080fd5b806003600082825461042b919061071f565b90915550506001600160a01b0382166000908152600560205260408120805483929061045890849061071f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001546001600160a01b0316331480156104bd575042600254105b6104c657600080fd5b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b60006104f7338484610545565b50600192915050565b6000546001600160a01b0316331461051757600080fd5b600180546001600160a01b0319166001600160a01b03831617905561053f620151804261071f565b60025550565b6001600160a01b0383166000908152600560205260408120805483929061056d908490610737565b90915550506001600160a01b0382166000908152600560205260408120805483929061059a90849061071f565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105e691815260200190565b60405180910390a3505050565b80356001600160a01b038116811461060a57600080fd5b919050565b60006020828403121561062157600080fd5b61062a826105f3565b9392505050565b6000806040838503121561064457600080fd5b61064d836105f3565b915061065b602084016105f3565b90509250929050565b60008060006060848603121561067957600080fd5b610682846105f3565b9250610690602085016105f3565b9150604084013590509250925092565b600080604083850312156106b357600080fd5b6106bc836105f3565b946020939093013593505050565b600060208083528351808285015260005b818110156106f7578581018301518582016040015282016106db565b81811115610709576000604083870101525b50601f01601f1916929092016040019392505050565b600082198211156107325761073261074e565b500190565b6000828210156107495761074961074e565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220e69b0b46e4dbf51c466e6ddc384d22e0cc0cfa5bb9bbbf6eca2b6e487403b76364736f6c63430008060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c80636a42b8f811610097578063a9059cbb11610066578063a9059cbb1461025d578063cfad57a214610270578063dd62ed3e14610283578063f94e4e80146102bc57600080fd5b80636a42b8f8146101ff57806370a08231146102095780637bc6729b1461023257806395d89b411461023a57600080fd5b80632196bcd7116100d35780632196bcd7146101b457806323b872dd146101bd578063313ce567146101d057806340c10f19146101ea57600080fd5b806306fdde0314610105578063095ea7b31461014f57806312d43a511461017257806318160ddd1461019d575b600080fd5b61013960405180604001604052806015815260200174092e4dedc4084c2dcd6408cd2f0cac8408cdee4caf605b1b81525081565b60405161014691906106ca565b60405180910390f35b61016261015d3660046106a0565b6102cf565b6040519015158152602001610146565b600054610185906001600160a01b031681565b6040516001600160a01b039091168152602001610146565b6101a660035481565b604051908152602001610146565b6101a660025481565b6101626101cb366004610664565b61033b565b6101d8601281565b60405160ff9091168152602001610146565b6101fd6101f83660046106a0565b610402565b005b6101a66201518081565b6101a661021736600461060f565b6001600160a01b031660009081526005602052604090205490565b6101fd6104a2565b6101396040518060400160405280600481526020016334b1333360e11b81525081565b61016261026b3660046106a0565b6104ea565b6101fd61027e36600461060f565b610500565b6101a6610291366004610631565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b600154610185906001600160a01b031681565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061032a9086815260200190565b60405180910390a350600192915050565b6001600160a01b03831660008181526004602090815260408083203380855292528220549192909190821480159061037557506000198114155b156103eb5760006103868583610737565b6001600160a01b038881166000818152600460209081526040808320948916808452948252918290208590559051848152939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b6103f6868686610545565b50600195945050505050565b6000546001600160a01b0316331461041957600080fd5b806003600082825461042b919061071f565b90915550506001600160a01b0382166000908152600560205260408120805483929061045890849061071f565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001546001600160a01b0316331480156104bd575042600254105b6104c657600080fd5b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b60006104f7338484610545565b50600192915050565b6000546001600160a01b0316331461051757600080fd5b600180546001600160a01b0319166001600160a01b03831617905561053f620151804261071f565b60025550565b6001600160a01b0383166000908152600560205260408120805483929061056d908490610737565b90915550506001600160a01b0382166000908152600560205260408120805483929061059a90849061071f565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105e691815260200190565b60405180910390a3505050565b80356001600160a01b038116811461060a57600080fd5b919050565b60006020828403121561062157600080fd5b61062a826105f3565b9392505050565b6000806040838503121561064457600080fd5b61064d836105f3565b915061065b602084016105f3565b90509250929050565b60008060006060848603121561067957600080fd5b610682846105f3565b9250610690602085016105f3565b9150604084013590509250925092565b600080604083850312156106b357600080fd5b6106bc836105f3565b946020939093013593505050565b600060208083528351808285015260005b818110156106f7578581018301518582016040015282016106db565b81811115610709576000604083870101525b50601f01601f1916929092016040019392505050565b600082198211156107325761073261074e565b500190565b6000828210156107495761074961074e565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220e69b0b46e4dbf51c466e6ddc384d22e0cc0cfa5bb9bbbf6eca2b6e487403b76364736f6c63430008060033
Deployed Bytecode Sourcemap
59:2737:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80:53;;;;;;;;;;;;;;;-1:-1:-1;;;80:53:0;;;;;;;;;;;;:::i;:::-;;;;;;;;1583:207;;;;;;:::i;:::-;;:::i;:::-;;;1613:14:1;;1606:22;1588:41;;1576:2;1561:18;1583:207:0;1543:92:1;233:18:0;;;;;-1:-1:-1;;;;;233:18:0;;;;;;-1:-1:-1;;;;;1404:32:1;;;1386:51;;1374:2;1359:18;233::0;1341:102:1;845:27:0;;;;;;;;;2388:25:1;;;2376:2;2361:18;845:27:0;2343:76:1;287:21:0;;;;;;2071:513;;;;;;:::i;:::-;;:::i;185:35::-;;218:2;185:35;;;;;2596:4:1;2584:17;;;2566:36;;2554:2;2539:18;185:35:0;2521:87:1;1176:251:0;;;;;;:::i;:::-;;:::i;:::-;;315:35;;344:6;315:35;;1798:108;;;;;;:::i;:::-;-1:-1:-1;;;;;1881:17:0;1857:4;1881:17;;;:8;:17;;;;;;;1798:108;644:134;;;:::i;140:38::-;;;;;;;;;;;;;;;-1:-1:-1;;;140:38:0;;;;;1914:149;;;;;;:::i;:::-;;:::i;512:120::-;;;;;;:::i;:::-;;:::i;1439:136::-;;;;;;:::i;:::-;-1:-1:-1;;;;;1539:19:0;;;1515:4;1539:19;;;:10;:19;;;;;;;;:28;;;;;;;;;;;;;1439:136;258:22;;;;;-1:-1:-1;;;;;258:22:0;;;1583:207;1676:10;1648:4;1665:22;;;:10;:22;;;;;;;;-1:-1:-1;;;;;1665:31:0;;;;;;;;;;:40;;;1723:37;1648:4;;1665:31;;1723:37;;;;1699:6;2388:25:1;;2376:2;2361:18;;2343:76;1723:37:0;;;;;;;;-1:-1:-1;1778:4:0;1583:207;;;;:::o;2071:513::-;-1:-1:-1;;;;;2230:15:0;;2150:4;2230:15;;;:10;:15;;;;;;;;2185:10;2230:24;;;;;;;;2150:4;;2185:10;;2230:24;2271:14;;;;;:52;;;-1:-1:-1;;2289:16:0;:34;;2271:52;2267:242;;;2340:17;2360:25;2379:6;2360:16;:25;:::i;:::-;-1:-1:-1;;;;;2400:15:0;;;;;;;:10;:15;;;;;;;;:24;;;;;;;;;;;;;:39;;;2461:36;;2388:25:1;;;2400:39:0;;-1:-1:-1;2400:24:0;;:15;;2461:36;;2361:18:1;2461:36:0;;;;;;;2325:184;2267:242;2521:33;2537:3;2542;2547:6;2521:15;:33::i;:::-;-1:-1:-1;2572:4:0;;2071:513;-1:-1:-1;;;;;2071:513:0:o;1176:251::-;476:3;;-1:-1:-1;;;;;476:3:0;462:10;:17;454:26;;;;;;1281:6:::1;1266:11;;:21;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;1347:13:0;::::1;;::::0;;;:8:::1;:13;::::0;;;;:23;;1364:6;;1347:13;:23:::1;::::0;1364:6;;1347:23:::1;:::i;:::-;::::0;;;-1:-1:-1;;1386:33:0::1;::::0;2388:25:1;;;-1:-1:-1;;;;;1386:33:0;::::1;::::0;1403:1:::1;::::0;1386:33:::1;::::0;2376:2:1;2361:18;1386:33:0::1;;;;;;;1176:251:::0;;:::o;644:134::-;707:7;;-1:-1:-1;;;;;707:7:0;693:10;:21;:52;;;;;730:15;718:9;;:27;693:52;685:61;;;;;;763:7;;;757:13;;-1:-1:-1;;;;;;757:13:0;-1:-1:-1;;;;;763:7:0;;;757:13;;;;;;644:134::o;1914:149::-;1976:4;1993:40;2009:10;2021:3;2026:6;1993:15;:40::i;:::-;-1:-1:-1;2051:4:0;1914:149;;;;:::o;512:120::-;476:3;;-1:-1:-1;;;;;476:3:0;462:10;:17;454:26;;;;;;564:7:::1;:14:::0;;-1:-1:-1;;;;;;564:14:0::1;-1:-1:-1::0;;;;;564:14:0;::::1;;::::0;;601:23:::1;344:6;601:15;:23;:::i;:::-;589:9;:35:::0;-1:-1:-1;512:120:0:o;2592:201::-;-1:-1:-1;;;;;2676:13:0;;;;;;:8;:13;;;;;:23;;2693:6;;2676:13;:23;;2693:6;;2676:23;:::i;:::-;;;;-1:-1:-1;;;;;;;2710:13:0;;;;;;:8;:13;;;;;:23;;2727:6;;2710:13;:23;;2727:6;;2710:23;:::i;:::-;;;;;;;;2773:3;-1:-1:-1;;;;;2759:26:0;2768:3;-1:-1:-1;;;;;2759:26:0;;2778:6;2759:26;;;;2388:25:1;;2376:2;2361:18;;2343:76;2759:26:0;;;;;;;;2592:201;;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;320:1;317;310:12;272:2;343:29;362:9;343:29;:::i;:::-;333:39;262:116;-1:-1:-1;;;262:116:1:o;383:260::-;451:6;459;512:2;500:9;491:7;487:23;483:32;480:2;;;528:1;525;518:12;480:2;551:29;570:9;551:29;:::i;:::-;541:39;;599:38;633:2;622:9;618:18;599:38;:::i;:::-;589:48;;470:173;;;;;:::o;648:328::-;725:6;733;741;794:2;782:9;773:7;769:23;765:32;762:2;;;810:1;807;800:12;762:2;833:29;852:9;833:29;:::i;:::-;823:39;;881:38;915:2;904:9;900:18;881:38;:::i;:::-;871:48;;966:2;955:9;951:18;938:32;928:42;;752:224;;;;;:::o;981:254::-;1049:6;1057;1110:2;1098:9;1089:7;1085:23;1081:32;1078:2;;;1126:1;1123;1116:12;1078:2;1149:29;1168:9;1149:29;:::i;:::-;1139:39;1225:2;1210:18;;;;1197:32;;-1:-1:-1;;;1068:167:1:o;1640:597::-;1752:4;1781:2;1810;1799:9;1792:21;1842:6;1836:13;1885:6;1880:2;1869:9;1865:18;1858:34;1910:1;1920:140;1934:6;1931:1;1928:13;1920:140;;;2029:14;;;2025:23;;2019:30;1995:17;;;2014:2;1991:26;1984:66;1949:10;;1920:140;;;2078:6;2075:1;2072:13;2069:2;;;2148:1;2143:2;2134:6;2123:9;2119:22;2115:31;2108:42;2069:2;-1:-1:-1;2221:2:1;2200:15;-1:-1:-1;;2196:29:1;2181:45;;;;2228:2;2177:54;;1761:476;-1:-1:-1;;;1761:476:1:o;2613:128::-;2653:3;2684:1;2680:6;2677:1;2674:13;2671:2;;;2690:18;;:::i;:::-;-1:-1:-1;2726:9:1;;2661:80::o;2746:125::-;2786:4;2814:1;2811;2808:8;2805:2;;;2819:18;;:::i;:::-;-1:-1:-1;2856:9:1;;2795:76::o;2876:127::-;2937:10;2932:3;2928:20;2925:1;2918:31;2968:4;2965:1;2958:15;2992:4;2989:1;2982:15
Swarm Source
ipfs://e69b0b46e4dbf51c466e6ddc384d22e0cc0cfa5bb9bbbf6eca2b6e487403b763
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.