ERC-20
Overview
Max Total Supply
100,000 FYT
Holders
29
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FYT
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-14 */ // SPDX-License-Identifier: MIT pragma solidity ^0.7.6; interface ERC20 { function totalSupply() external view returns (uint); function balanceOf(address who) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function transfer(address to, uint value) external returns (bool); function approve(address spender, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); } interface ApproveAndCallFallBack { function receiveApproval(address from, uint tokens, address token, bytes calldata data) external; } contract FYT is ERC20 { using SafeMath for uint256; mapping (address => uint256) private balances; mapping (address => mapping (address => uint256)) private allowed; string public constant name = "Flora Yield Token"; string public constant symbol = "FYT"; uint8 public constant decimals = 18; address deployer; uint256 _totalSupply = 100000 * 10**18; constructor() { deployer = msg.sender; balances[deployer] = _totalSupply; emit Transfer(address(0), deployer, _totalSupply); } function totalSupply() public view override returns (uint256) { return _totalSupply; } function balanceOf(address addr) public view override returns (uint256) { return balances[addr]; } function allowance(address addr, address spender) public view override returns (uint256) { return allowed[addr][spender]; } function transfer(address to, uint256 value) public override returns (bool) { require(value <= balances[msg.sender]); require(to != address(0)); balances[msg.sender] = balances[msg.sender].sub(value); balances[to] = balances[to].add(value); emit Transfer(msg.sender, to, value); return true; } function multiTransfer(address[] memory receivers, uint256[] memory amounts) public { for (uint256 i = 0; i < receivers.length; i++) { transfer(receivers[i], amounts[i]); } } function approve(address spender, uint256 value) public override returns (bool) { require(spender != address(0)); allowed[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; } function transferFrom(address from, address to, uint256 value) public override returns (bool) { require(value <= balances[from]); require(value <= allowed[from][msg.sender]); require(to != address(0)); balances[from] = balances[from].sub(value); balances[to] = balances[to].add(value); allowed[from][msg.sender] = allowed[from][msg.sender].sub(value); emit Transfer(from, to, value); return true; } function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { require(spender != address(0)); allowed[msg.sender][spender] = allowed[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, allowed[msg.sender][spender]); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { require(spender != address(0)); allowed[msg.sender][spender] = allowed[msg.sender][spender].sub(subtractedValue); emit Approval(msg.sender, spender, allowed[msg.sender][spender]); return true; } } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } function ceil(uint256 a, uint256 m) internal pure returns (uint256) { uint256 c = add(a,m); uint256 d = sub(c,1); return mul(div(d,m),m); } }
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":"value","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":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"addr","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"multiTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405269152d02c7e14af680000060035534801561001e57600080fd5b50600280546001600160a01b03191633178082556003546001600160a01b03918216600090815260208181526040808320849055945485519384529451949093169390927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef928290030190a36108d1806100996000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80633950935111610071578063395093511461030d57806370a082311461033957806395d89b411461035f578063a457c2d714610367578063a9059cbb14610393578063dd62ed3e146103bf576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd146101765780631e89d5451461019057806323b872dd146102b9578063313ce567146102ef575b600080fd5b6100c16103ed565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b03813516906020013561041a565b604080519115158252519081900360200190f35b61017e610496565b60408051918252519081900360200190f35b6102b7600480360360408110156101a657600080fd5b8101906020810181356401000000008111156101c157600080fd5b8201836020820111156101d357600080fd5b803590602001918460208302840111640100000000831117156101f557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561024557600080fd5b82018360208201111561025757600080fd5b8035906020019184602083028401116401000000008311171561027957600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061049c945050505050565b005b610162600480360360608110156102cf57600080fd5b506001600160a01b038135811691602081013590911690604001356104e6565b6102f7610647565b6040805160ff9092168252519081900360200190f35b6101626004803603604081101561032357600080fd5b506001600160a01b03813516906020013561064c565b61017e6004803603602081101561034f57600080fd5b50356001600160a01b03166106f4565b6100c161070f565b6101626004803603604081101561037d57600080fd5b506001600160a01b03813516906020013561072e565b610162600480360360408110156103a957600080fd5b506001600160a01b038135169060200135610771565b61017e600480360360408110156103d557600080fd5b506001600160a01b0381358116916020013516610842565b60405180604001604052806011815260200170233637b930902cb4b2b632102a37b5b2b760791b81525081565b60006001600160a01b03831661042f57600080fd5b3360008181526001602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60035490565b60005b82518110156104e1576104d88382815181106104b757fe5b60200260200101518383815181106104cb57fe5b6020026020010151610771565b5060010161049f565b505050565b6001600160a01b03831660009081526020819052604081205482111561050b57600080fd5b6001600160a01b038416600090815260016020908152604080832033845290915290205482111561053b57600080fd5b6001600160a01b03831661054e57600080fd5b6001600160a01b038416600090815260208190526040902054610571908361086d565b6001600160a01b0380861660009081526020819052604080822093909355908516815220546105a09083610882565b6001600160a01b038085166000908152602081815260408083209490945591871681526001825282812033825290915220546105dc908361086d565b6001600160a01b03808616600081815260016020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b601281565b60006001600160a01b03831661066157600080fd5b3360009081526001602090815260408083206001600160a01b038716845290915290205461068f9083610882565b3360008181526001602090815260408083206001600160a01b0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b6001600160a01b031660009081526020819052604090205490565b6040518060400160405280600381526020016211965560ea1b81525081565b60006001600160a01b03831661074357600080fd5b3360009081526001602090815260408083206001600160a01b038716845290915290205461068f908361086d565b3360009081526020819052604081205482111561078d57600080fd5b6001600160a01b0383166107a057600080fd5b336000908152602081905260409020546107ba908361086d565b33600090815260208190526040808220929092556001600160a01b038516815220546107e69083610882565b6001600160a01b038416600081815260208181526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60008282111561087c57600080fd5b50900390565b60008282018381101561089457600080fd5b939250505056fea26469706673582212207ce8de71a3ea862898aca022ae7f844bae86c69b021949ef74d892ea0a2e0a1a64736f6c63430007060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80633950935111610071578063395093511461030d57806370a082311461033957806395d89b411461035f578063a457c2d714610367578063a9059cbb14610393578063dd62ed3e146103bf576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd146101765780631e89d5451461019057806323b872dd146102b9578063313ce567146102ef575b600080fd5b6100c16103ed565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b03813516906020013561041a565b604080519115158252519081900360200190f35b61017e610496565b60408051918252519081900360200190f35b6102b7600480360360408110156101a657600080fd5b8101906020810181356401000000008111156101c157600080fd5b8201836020820111156101d357600080fd5b803590602001918460208302840111640100000000831117156101f557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929594936020810193503591505064010000000081111561024557600080fd5b82018360208201111561025757600080fd5b8035906020019184602083028401116401000000008311171561027957600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061049c945050505050565b005b610162600480360360608110156102cf57600080fd5b506001600160a01b038135811691602081013590911690604001356104e6565b6102f7610647565b6040805160ff9092168252519081900360200190f35b6101626004803603604081101561032357600080fd5b506001600160a01b03813516906020013561064c565b61017e6004803603602081101561034f57600080fd5b50356001600160a01b03166106f4565b6100c161070f565b6101626004803603604081101561037d57600080fd5b506001600160a01b03813516906020013561072e565b610162600480360360408110156103a957600080fd5b506001600160a01b038135169060200135610771565b61017e600480360360408110156103d557600080fd5b506001600160a01b0381358116916020013516610842565b60405180604001604052806011815260200170233637b930902cb4b2b632102a37b5b2b760791b81525081565b60006001600160a01b03831661042f57600080fd5b3360008181526001602090815260408083206001600160a01b03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60035490565b60005b82518110156104e1576104d88382815181106104b757fe5b60200260200101518383815181106104cb57fe5b6020026020010151610771565b5060010161049f565b505050565b6001600160a01b03831660009081526020819052604081205482111561050b57600080fd5b6001600160a01b038416600090815260016020908152604080832033845290915290205482111561053b57600080fd5b6001600160a01b03831661054e57600080fd5b6001600160a01b038416600090815260208190526040902054610571908361086d565b6001600160a01b0380861660009081526020819052604080822093909355908516815220546105a09083610882565b6001600160a01b038085166000908152602081815260408083209490945591871681526001825282812033825290915220546105dc908361086d565b6001600160a01b03808616600081815260016020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b601281565b60006001600160a01b03831661066157600080fd5b3360009081526001602090815260408083206001600160a01b038716845290915290205461068f9083610882565b3360008181526001602090815260408083206001600160a01b0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b6001600160a01b031660009081526020819052604090205490565b6040518060400160405280600381526020016211965560ea1b81525081565b60006001600160a01b03831661074357600080fd5b3360009081526001602090815260408083206001600160a01b038716845290915290205461068f908361086d565b3360009081526020819052604081205482111561078d57600080fd5b6001600160a01b0383166107a057600080fd5b336000908152602081905260409020546107ba908361086d565b33600090815260208190526040808220929092556001600160a01b038516815220546107e69083610882565b6001600160a01b038416600081815260208181526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60008282111561087c57600080fd5b50900390565b60008282018381101561089457600080fd5b939250505056fea26469706673582212207ce8de71a3ea862898aca022ae7f844bae86c69b021949ef74d892ea0a2e0a1a64736f6c63430007060033
Deployed Bytecode Sourcemap
835:2729:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1013:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2252:232;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2252:232:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1367:94;;;:::i;:::-;;;;;;;;;;;;;;;;2052:194;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2052:194:0;;;;;;;;-1:-1:-1;2052:194:0;;-1:-1:-1;;2052:194:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2052:194:0;;-1:-1:-1;2052:194:0;;-1:-1:-1;;;;;2052:194:0:i;:::-;;2490:447;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2490:447:0;;;;;;;;;;;;;;;;;:::i;1110:35::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2943:300;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2943:300:0;;;;;;;;:::i;1467:106::-;;;;;;;;;;;;;;;;-1:-1:-1;1467:106:0;-1:-1:-1;;;;;1467:106:0;;:::i;1068:37::-;;;:::i;3249:310::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3249:310:0;;;;;;;;:::i;1716:330::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1716:330:0;;;;;;;;:::i;1579:131::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1579:131:0;;;;;;;;;;:::i;1013:50::-;;;;;;;;;;;;;;-1:-1:-1;;;1013:50:0;;;;:::o;2252:232::-;2326:4;-1:-1:-1;;;;;2347:21:0;;2339:30;;;;;;2384:10;2376:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2376:28:0;;;;;;;;;;;;:36;;;2424;;;;;;;2376:28;;2384:10;2424:36;;;;;;;;;;;-1:-1:-1;2474:4:0;2252:232;;;;:::o;1367:94::-;1443:12;;1367:94;:::o;2052:194::-;2148:9;2143:98;2167:9;:16;2163:1;:20;2143:98;;;2199:34;2208:9;2218:1;2208:12;;;;;;;;;;;;;;2222:7;2230:1;2222:10;;;;;;;;;;;;;;2199:8;:34::i;:::-;-1:-1:-1;2185:3:0;;2143:98;;;;2052:194;;:::o;2490:447::-;-1:-1:-1;;;;;2608:14:0;;2578:4;2608:14;;;;;;;;;;;2599:23;;;2591:32;;;;;;-1:-1:-1;;;;;2647:13:0;;;;;;:7;:13;;;;;;;;2661:10;2647:25;;;;;;;;2638:34;;;2630:43;;;;;;-1:-1:-1;;;;;2688:16:0;;2680:25;;;;;;-1:-1:-1;;;;;2731:14:0;;:8;:14;;;;;;;;;;;:25;;2750:5;2731:18;:25::i;:::-;-1:-1:-1;;;;;2714:14:0;;;:8;:14;;;;;;;;;;;:42;;;;2778:12;;;;;;;:23;;2795:5;2778:16;:23::i;:::-;-1:-1:-1;;;;;2763:12:0;;;:8;:12;;;;;;;;;;;:38;;;;2838:13;;;;;:7;:13;;;;;2852:10;2838:25;;;;;;;:36;;2868:5;2838:29;:36::i;:::-;-1:-1:-1;;;;;2810:13:0;;;;;;;:7;:13;;;;;;;;2824:10;2810:25;;;;;;;;:64;;;;2888:25;;;;;;;;;;;2810:13;;2888:25;;;;;;;;;;;-1:-1:-1;2927:4:0;2490:447;;;;;:::o;1110:35::-;1143:2;1110:35;:::o;2943:300::-;3023:4;-1:-1:-1;;;;;3044:21:0;;3036:30;;;;;;3112:10;3104:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;3104:28:0;;;;;;;;;;:44;;3137:10;3104:32;:44::i;:::-;3081:10;3073:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;3073:28:0;;;;;;;;;;;;:75;;;3160:59;;;;;;3073:28;;3160:59;;;;;;;;;;;-1:-1:-1;3233:4:0;2943:300;;;;:::o;1467:106::-;-1:-1:-1;;;;;1553:14:0;1530:7;1553:14;;;;;;;;;;;;1467:106::o;1068:37::-;;;;;;;;;;;;;;-1:-1:-1;;;1068:37:0;;;;:::o;3249:310::-;3334:4;-1:-1:-1;;;;;3355:21:0;;3347:30;;;;;;3423:10;3415:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;3415:28:0;;;;;;;;;;:49;;3448:15;3415:32;:49::i;1716:330::-;1825:10;1786:4;1816:20;;;;;;;;;;;1807:29;;;1799:38;;;;;;-1:-1:-1;;;;;1852:16:0;;1844:25;;;;;;1910:10;1901:8;:20;;;;;;;;;;;:31;;1926:5;1901:24;:31::i;:::-;1887:10;1878:8;:20;;;;;;;;;;;:54;;;;-1:-1:-1;;;;;1954:12:0;;;;;;:23;;1971:5;1954:16;:23::i;:::-;-1:-1:-1;;;;;1939:12:0;;:8;:12;;;;;;;;;;;;:38;;;;1991:31;;;;;;;1939:12;;2000:10;;1991:31;;;;;;;;;;-1:-1:-1;2036:4:0;1716:330;;;;:::o;1579:131::-;-1:-1:-1;;;;;1682:13:0;;;1659:7;1682:13;;;:7;:13;;;;;;;;:22;;;;;;;;;;;;;1579:131::o;3895:114::-;3953:7;3982:1;3977;:6;;3969:15;;;;;;-1:-1:-1;3998:5:0;;;3895:114::o;4015:134::-;4073:7;4101:5;;;4121:6;;;;4113:15;;;;;;4142:1;4015:134;-1:-1:-1;;;4015:134:0:o
Swarm Source
ipfs://7ce8de71a3ea862898aca022ae7f844bae86c69b021949ef74d892ea0a2e0a1a
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.