FTM Price: $0.794787 (-1.23%)
Gas: 10 GWei
 

Overview

Max Total Supply

9,570,659.1121508384864924 SEX

Holders

10,757 (0.00%)

Total Transfers

-

Market

Price

$0.00 @ 0.000000 FTM

Onchain Market Cap

$13,338.24

Circulating Supply Market Cap

$8,060.52

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A yield optimizer for Solidly built on Fantom.

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xe0Eb2Dc7...d4803f80E
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
SolidexToken

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 3 : Token.sol
pragma solidity 0.8.11;

import "Ownable.sol";
import "IERC20.sol";


contract SolidexToken is IERC20, Ownable {

    string public constant name = "Solidex";
    string public constant symbol = "SEX";
    uint8 public constant decimals = 18;
    uint256 public override totalSupply;

    mapping(address => uint256) public override balanceOf;
    mapping(address => mapping(address => uint256)) public override allowance;
    mapping(address => bool) public minters;

    constructor() {
        emit Transfer(address(0), msg.sender, 0);
    }

    /**
        @notice Approve contracts to mint and renounce ownership
        @dev In production the only minters should be `LpDepositor` and `SexPartners`
             Addresses are given via dynamic array to allow extra minters during testing
     */
    function setMinters(address[] calldata _minters) external onlyOwner {
        for (uint256 i = 0; i < _minters.length; i++) {
            minters[_minters[i]] = true;
        }

        renounceOwnership();
    }

    function approve(address _spender, uint256 _value) external override returns (bool) {
        allowance[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

    /** shared logic for transfer and transferFrom */
    function _transfer(address _from, address _to, uint256 _value) internal {
        require(balanceOf[_from] >= _value, "Insufficient balance");
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        emit Transfer(_from, _to, _value);
    }

    /**
        @notice Transfer tokens to a specified address
        @param _to The address to transfer to
        @param _value The amount to be transferred
        @return Success boolean
     */
    function transfer(address _to, uint256 _value) public override returns (bool) {
        _transfer(msg.sender, _to, _value);
        return true;
    }

    /**
        @notice Transfer tokens from one address to another
        @param _from The address which you want to send tokens from
        @param _to The address which you want to transfer to
        @param _value The amount of tokens to be transferred
        @return Success boolean
     */
    function transferFrom(
        address _from,
        address _to,
        uint256 _value
    )
        public
        override
        returns (bool)
    {
        require(allowance[_from][msg.sender] >= _value, "Insufficient allowance");
        if (allowance[_from][msg.sender] != type(uint).max) {
            allowance[_from][msg.sender] -= _value;
        }
        _transfer(_from, _to, _value);
        return true;
    }

    function mint(address _to, uint256 _value) external returns (bool) {
        require(minters[msg.sender], "Not a minter");
        balanceOf[_to] += _value;
        totalSupply += _value;
        emit Transfer(address(0), _to, _value);
        return true;
    }

}

File 2 of 3 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable {
    address public owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(msg.sender);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = owner;
        owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 3 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.11;

/**
 * Based on the OpenZeppelin IER20 interface:
 * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol
 *
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

Settings
{
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "libraries": {
    "Token.sol": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":"","type":"address"},{"internalType":"address","name":"","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":"","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":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_minters","type":"address[]"}],"name":"setMinters","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":"_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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a33610056565b604051600080825233917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a36100a6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610a46806100b56000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a9059cbb11610066578063a9059cbb1461023a578063dd62ed3e1461024d578063f2fde38b14610278578063f46eccc41461028b57600080fd5b806370a08231146101c5578063715018a6146101e55780638da5cb5b146101ed57806395d89b411461021857600080fd5b806323b872dd116100d357806323b872dd14610170578063313ce5671461018357806340c10f191461019d578063547d0096146101b057600080fd5b806306fdde03146100fa578063095ea7b31461013657806318160ddd14610159575b600080fd5b610120604051806040016040528060078152602001660a6ded8d2c8caf60cb1b81525081565b60405161012d91906107c4565b60405180910390f35b610149610144366004610835565b6102ae565b604051901515815260200161012d565b61016260015481565b60405190815260200161012d565b61014961017e36600461085f565b61031a565b61018b601281565b60405160ff909116815260200161012d565b6101496101ab366004610835565b610405565b6101c36101be36600461089b565b6104d7565b005b6101626101d3366004610910565b60026020526000908152604090205481565b6101c3610580565b600054610200906001600160a01b031681565b6040516001600160a01b03909116815260200161012d565b610120604051806040016040528060038152602001620a68ab60eb1b81525081565b610149610248366004610835565b6105b6565b61016261025b366004610932565b600360209081526000928352604080842090915290825290205481565b6101c3610286366004610910565b6105cc565b610149610299366004610910565b60046020526000908152604090205460ff1681565b3360008181526003602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103099086815260200190565b60405180910390a350600192915050565b6001600160a01b038316600090815260036020908152604080832033845290915281205482111561038b5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064015b60405180910390fd5b6001600160a01b0384166000908152600360209081526040808320338452909152902054600019146103f0576001600160a01b0384166000908152600360209081526040808320338452909152812080548492906103ea90849061097b565b90915550505b6103fb848484610667565b5060019392505050565b3360009081526004602052604081205460ff166104535760405162461bcd60e51b815260206004820152600c60248201526b2737ba10309036b4b73a32b960a11b6044820152606401610382565b6001600160a01b0383166000908152600260205260408120805484929061047b908490610992565b9250508190555081600160008282546104949190610992565b90915550506040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610309565b6000546001600160a01b031633146105015760405162461bcd60e51b8152600401610382906109aa565b60005b8181101561057357600160046000858585818110610524576105246109df565b90506020020160208101906105399190610910565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061056b816109f5565b915050610504565b5061057c610580565b5050565b6000546001600160a01b031633146105aa5760405162461bcd60e51b8152600401610382906109aa565b6105b46000610774565b565b60006105c3338484610667565b50600192915050565b6000546001600160a01b031633146105f65760405162461bcd60e51b8152600401610382906109aa565b6001600160a01b03811661065b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610382565b61066481610774565b50565b6001600160a01b0383166000908152600260205260409020548111156106c65760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610382565b6001600160a01b038316600090815260026020526040812080548392906106ee90849061097b565b90915550506001600160a01b0382166000908152600260205260408120805483929061071b908490610992565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161076791815260200190565b60405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208083528351808285015260005b818110156107f1578581018301518582016040015282016107d5565b81811115610803576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461083057600080fd5b919050565b6000806040838503121561084857600080fd5b61085183610819565b946020939093013593505050565b60008060006060848603121561087457600080fd5b61087d84610819565b925061088b60208501610819565b9150604084013590509250925092565b600080602083850312156108ae57600080fd5b823567ffffffffffffffff808211156108c657600080fd5b818501915085601f8301126108da57600080fd5b8135818111156108e957600080fd5b8660208260051b85010111156108fe57600080fd5b60209290920196919550909350505050565b60006020828403121561092257600080fd5b61092b82610819565b9392505050565b6000806040838503121561094557600080fd5b61094e83610819565b915061095c60208401610819565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008282101561098d5761098d610965565b500390565b600082198211156109a5576109a5610965565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610a0957610a09610965565b506001019056fea2646970667358221220d565918c3c42b3f9099334d86c90dc48bc535ad43c0870475cf6963d766538a064736f6c634300080b0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a9059cbb11610066578063a9059cbb1461023a578063dd62ed3e1461024d578063f2fde38b14610278578063f46eccc41461028b57600080fd5b806370a08231146101c5578063715018a6146101e55780638da5cb5b146101ed57806395d89b411461021857600080fd5b806323b872dd116100d357806323b872dd14610170578063313ce5671461018357806340c10f191461019d578063547d0096146101b057600080fd5b806306fdde03146100fa578063095ea7b31461013657806318160ddd14610159575b600080fd5b610120604051806040016040528060078152602001660a6ded8d2c8caf60cb1b81525081565b60405161012d91906107c4565b60405180910390f35b610149610144366004610835565b6102ae565b604051901515815260200161012d565b61016260015481565b60405190815260200161012d565b61014961017e36600461085f565b61031a565b61018b601281565b60405160ff909116815260200161012d565b6101496101ab366004610835565b610405565b6101c36101be36600461089b565b6104d7565b005b6101626101d3366004610910565b60026020526000908152604090205481565b6101c3610580565b600054610200906001600160a01b031681565b6040516001600160a01b03909116815260200161012d565b610120604051806040016040528060038152602001620a68ab60eb1b81525081565b610149610248366004610835565b6105b6565b61016261025b366004610932565b600360209081526000928352604080842090915290825290205481565b6101c3610286366004610910565b6105cc565b610149610299366004610910565b60046020526000908152604090205460ff1681565b3360008181526003602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103099086815260200190565b60405180910390a350600192915050565b6001600160a01b038316600090815260036020908152604080832033845290915281205482111561038b5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b60448201526064015b60405180910390fd5b6001600160a01b0384166000908152600360209081526040808320338452909152902054600019146103f0576001600160a01b0384166000908152600360209081526040808320338452909152812080548492906103ea90849061097b565b90915550505b6103fb848484610667565b5060019392505050565b3360009081526004602052604081205460ff166104535760405162461bcd60e51b815260206004820152600c60248201526b2737ba10309036b4b73a32b960a11b6044820152606401610382565b6001600160a01b0383166000908152600260205260408120805484929061047b908490610992565b9250508190555081600160008282546104949190610992565b90915550506040518281526001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610309565b6000546001600160a01b031633146105015760405162461bcd60e51b8152600401610382906109aa565b60005b8181101561057357600160046000858585818110610524576105246109df565b90506020020160208101906105399190610910565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061056b816109f5565b915050610504565b5061057c610580565b5050565b6000546001600160a01b031633146105aa5760405162461bcd60e51b8152600401610382906109aa565b6105b46000610774565b565b60006105c3338484610667565b50600192915050565b6000546001600160a01b031633146105f65760405162461bcd60e51b8152600401610382906109aa565b6001600160a01b03811661065b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610382565b61066481610774565b50565b6001600160a01b0383166000908152600260205260409020548111156106c65760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610382565b6001600160a01b038316600090815260026020526040812080548392906106ee90849061097b565b90915550506001600160a01b0382166000908152600260205260408120805483929061071b908490610992565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161076791815260200190565b60405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208083528351808285015260005b818110156107f1578581018301518582016040015282016107d5565b81811115610803576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461083057600080fd5b919050565b6000806040838503121561084857600080fd5b61085183610819565b946020939093013593505050565b60008060006060848603121561087457600080fd5b61087d84610819565b925061088b60208501610819565b9150604084013590509250925092565b600080602083850312156108ae57600080fd5b823567ffffffffffffffff808211156108c657600080fd5b818501915085601f8301126108da57600080fd5b8135818111156108e957600080fd5b8660208260051b85010111156108fe57600080fd5b60209290920196919550909350505050565b60006020828403121561092257600080fd5b61092b82610819565b9392505050565b6000806040838503121561094557600080fd5b61094e83610819565b915061095c60208401610819565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008282101561098d5761098d610965565b500390565b600082198211156109a5576109a5610965565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610a0957610a09610965565b506001019056fea2646970667358221220d565918c3c42b3f9099334d86c90dc48bc535ad43c0870475cf6963d766538a064736f6c634300080b0033

[ 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.