Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 993 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Convert | 21587191 | 2 days ago | IN | 0 ETH | 0.00049078 | ||||
Convert | 21581503 | 2 days ago | IN | 0 ETH | 0.00196311 | ||||
Convert | 21579877 | 3 days ago | IN | 0 ETH | 0.00114652 | ||||
Convert | 21579280 | 3 days ago | IN | 0 ETH | 0.00033848 | ||||
Convert | 21578266 | 3 days ago | IN | 0 ETH | 0.00048985 | ||||
Convert | 21571229 | 4 days ago | IN | 0 ETH | 0.00037434 | ||||
Convert | 21560630 | 5 days ago | IN | 0 ETH | 0.0009296 | ||||
Convert | 21560006 | 5 days ago | IN | 0 ETH | 0.00068827 | ||||
Convert | 21559988 | 5 days ago | IN | 0 ETH | 0.00065257 | ||||
Convert | 21550621 | 7 days ago | IN | 0 ETH | 0.00052596 | ||||
Convert | 21548558 | 7 days ago | IN | 0 ETH | 0.00042744 | ||||
Convert | 21536451 | 9 days ago | IN | 0 ETH | 0.0011364 | ||||
Convert | 21529828 | 10 days ago | IN | 0 ETH | 0.00080662 | ||||
Convert | 21523765 | 10 days ago | IN | 0 ETH | 0.00128802 | ||||
Convert | 21522811 | 11 days ago | IN | 0 ETH | 0.00073675 | ||||
Convert | 21519736 | 11 days ago | IN | 0 ETH | 0.0003775 | ||||
Convert | 21519278 | 11 days ago | IN | 0 ETH | 0.0003949 | ||||
Convert | 21517679 | 11 days ago | IN | 0 ETH | 0.00062706 | ||||
Convert | 21509722 | 12 days ago | IN | 0 ETH | 0.00033249 | ||||
Convert | 21508922 | 13 days ago | IN | 0 ETH | 0.00051299 | ||||
Convert | 21501353 | 14 days ago | IN | 0 ETH | 0.00045088 | ||||
Convert | 21497134 | 14 days ago | IN | 0 ETH | 0.00038987 | ||||
Convert | 21467894 | 18 days ago | IN | 0 ETH | 0.00153925 | ||||
Convert | 21466544 | 18 days ago | IN | 0 ETH | 0.0012845 | ||||
Convert | 21465899 | 19 days ago | IN | 0 ETH | 0.00208175 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
OrionToLumiaConverter
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.19; import "@openzeppelin/contracts/access/Ownable.sol"; interface IERC20 { function decimals() external view returns (uint8); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function transfer(address recipient, uint256 amount) external returns (bool); } contract OrionToLumiaConverter is Ownable { bool public isConversionEnabled = false; IERC20 public immutable orion; IERC20 public immutable lumia; uint256 public immutable conversionScaleFactor; uint8 public immutable orionDecimals; uint8 public immutable lumiaDecimals; event Convert(address account, uint256 ornAmount, uint256 lumiaAmount); error ConversionDisabled(); constructor( address _owner, IERC20 _orion, IERC20 _lumia, uint256 _conversionScaleFactor ) { transferOwnership(_owner); orion = _orion; lumia = _lumia; conversionScaleFactor = _conversionScaleFactor; orionDecimals = orion.decimals(); lumiaDecimals = lumia.decimals(); } function convert(uint256 ornAmount) external { if (!isConversionEnabled) revert ConversionDisabled(); orion.transferFrom(msg.sender, address(this), ornAmount); uint256 lumiaAmount = calculateLumiaAmount(ornAmount); lumia.transfer(msg.sender, lumiaAmount); emit Convert(msg.sender, ornAmount, lumiaAmount); } function toggleIsConversionEnabled() external onlyOwner { isConversionEnabled = !isConversionEnabled; } function burn(address token, address burnAddress, uint256 amount) external onlyOwner { IERC20(token).transfer(burnAddress, amount); } function calculateLumiaAmount( uint256 ornAmount ) internal view returns (uint256) { return ((ornAmount * conversionScaleFactor) * (10 ** lumiaDecimals)) / (10 ** orionDecimals); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @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 is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"contract IERC20","name":"_orion","type":"address"},{"internalType":"contract IERC20","name":"_lumia","type":"address"},{"internalType":"uint256","name":"_conversionScaleFactor","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ConversionDisabled","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"ornAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lumiaAmount","type":"uint256"}],"name":"Convert","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"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"burnAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"conversionScaleFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ornAmount","type":"uint256"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isConversionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lumia","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lumiaDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orion","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orionDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":[],"name":"toggleIsConversionEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101206040526000805460ff60a01b191690553480156200001f57600080fd5b5060405162000c1e38038062000c1e8339810160408190526200004291620002a2565b6200004d336200015b565b6200005884620001ab565b6001600160a01b03808416608081905290831660a05260c08290526040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa158015620000af573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d59190620002fc565b60ff1660e08160ff168152505060a0516001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000123573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001499190620002fc565b60ff1661010052506200032892505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001b56200022e565b6001600160a01b038116620002205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6200022b816200015b565b50565b6000546001600160a01b031633146200028a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000217565b565b6001600160a01b03811681146200022b57600080fd5b60008060008060808587031215620002b957600080fd5b8451620002c6816200028c565b6020860151909450620002d9816200028c565b6040860151909350620002ec816200028c565b6060959095015193969295505050565b6000602082840312156200030f57600080fd5b815160ff811681146200032157600080fd5b9392505050565b60805160a05160c05160e0516101005161088f6200038f600039600081816101a601526105f801526000818160e701526105cd015260008181610171015261062301526000818161012a01526103620152600081816101f101526102c2015261088f6000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806389a969831161007157806389a96983146101a15780638da5cb5b146101c8578063a3908e1b146101d9578063cdfd441e146101ec578063f2fde38b14610213578063f6b911bc1461022657600080fd5b80630d9986ad146100b95780630fd6462b146100e25780631eee78051461011b57806356e39b5514610125578063715018a61461016457806378be99491461016c575b600080fd5b6000546100cd90600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b6101097f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016100d9565b610123610239565b005b61014c7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100d9565b610123610262565b6101937f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016100d9565b6101097f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031661014c565b6101236101e7366004610662565b610276565b61014c7f000000000000000000000000000000000000000000000000000000000000000081565b610123610221366004610697565b61041d565b6101236102343660046106b9565b61049b565b61024161051c565b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b61026a61051c565b6102746000610576565b565b600054600160a01b900460ff166102a057604051632efe214b60e01b815260040160405180910390fd5b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610313573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033791906106f5565b506000610343826105c6565b60405163a9059cbb60e01b8152336004820152602481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156103b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d791906106f5565b5060408051338152602081018490529081018290527f9018eade4aec2a696b34b0f5459a1a7dc058389bab8e2380d880817a9e22b2139060600160405180910390a15050565b61042561051c565b6001600160a01b03811661048f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61049881610576565b50565b6104a361051c565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156104f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051691906106f5565b50505050565b6000546001600160a01b031633146102745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610486565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006105f37f0000000000000000000000000000000000000000000000000000000000000000600a610811565b61061e7f0000000000000000000000000000000000000000000000000000000000000000600a610811565b6106487f000000000000000000000000000000000000000000000000000000000000000085610820565b6106529190610820565b61065c9190610837565b92915050565b60006020828403121561067457600080fd5b5035919050565b80356001600160a01b038116811461069257600080fd5b919050565b6000602082840312156106a957600080fd5b6106b28261067b565b9392505050565b6000806000606084860312156106ce57600080fd5b6106d78461067b565b92506106e56020850161067b565b9150604084013590509250925092565b60006020828403121561070757600080fd5b815180151581146106b257600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561076857816000190482111561074e5761074e610717565b8085161561075b57918102915b93841c9390800290610732565b509250929050565b60008261077f5750600161065c565b8161078c5750600061065c565b81600181146107a257600281146107ac576107c8565b600191505061065c565b60ff8411156107bd576107bd610717565b50506001821b61065c565b5060208310610133831016604e8410600b84101617156107eb575081810a61065c565b6107f5838361072d565b806000190482111561080957610809610717565b029392505050565b60006106b260ff841683610770565b808202811582820484141761065c5761065c610717565b60008261085457634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220fbba1dc5e9e8003bee80fbc56e8761c6690d43223c0657c00977488b61ebc9bb64736f6c634300081300330000000000000000000000003ea94abcbaafb7e2bfe63a0dbe8ff06a077ba9ba0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a000000000000000000000000d9343a049d5dbd89cd19dc6bca8c48fb3a0a42a70000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806389a969831161007157806389a96983146101a15780638da5cb5b146101c8578063a3908e1b146101d9578063cdfd441e146101ec578063f2fde38b14610213578063f6b911bc1461022657600080fd5b80630d9986ad146100b95780630fd6462b146100e25780631eee78051461011b57806356e39b5514610125578063715018a61461016457806378be99491461016c575b600080fd5b6000546100cd90600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b6101097f000000000000000000000000000000000000000000000000000000000000000881565b60405160ff90911681526020016100d9565b610123610239565b005b61014c7f000000000000000000000000d9343a049d5dbd89cd19dc6bca8c48fb3a0a42a781565b6040516001600160a01b0390911681526020016100d9565b610123610262565b6101937f000000000000000000000000000000000000000000000000000000000000000181565b6040519081526020016100d9565b6101097f000000000000000000000000000000000000000000000000000000000000001281565b6000546001600160a01b031661014c565b6101236101e7366004610662565b610276565b61014c7f0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a81565b610123610221366004610697565b61041d565b6101236102343660046106b9565b61049b565b61024161051c565b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b61026a61051c565b6102746000610576565b565b600054600160a01b900460ff166102a057604051632efe214b60e01b815260040160405180910390fd5b6040516323b872dd60e01b8152336004820152306024820152604481018290527f0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a6001600160a01b0316906323b872dd906064016020604051808303816000875af1158015610313573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033791906106f5565b506000610343826105c6565b60405163a9059cbb60e01b8152336004820152602481018290529091507f000000000000000000000000d9343a049d5dbd89cd19dc6bca8c48fb3a0a42a76001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156103b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d791906106f5565b5060408051338152602081018490529081018290527f9018eade4aec2a696b34b0f5459a1a7dc058389bab8e2380d880817a9e22b2139060600160405180910390a15050565b61042561051c565b6001600160a01b03811661048f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61049881610576565b50565b6104a361051c565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af11580156104f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061051691906106f5565b50505050565b6000546001600160a01b031633146102745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610486565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006105f37f0000000000000000000000000000000000000000000000000000000000000008600a610811565b61061e7f0000000000000000000000000000000000000000000000000000000000000012600a610811565b6106487f000000000000000000000000000000000000000000000000000000000000000185610820565b6106529190610820565b61065c9190610837565b92915050565b60006020828403121561067457600080fd5b5035919050565b80356001600160a01b038116811461069257600080fd5b919050565b6000602082840312156106a957600080fd5b6106b28261067b565b9392505050565b6000806000606084860312156106ce57600080fd5b6106d78461067b565b92506106e56020850161067b565b9150604084013590509250925092565b60006020828403121561070757600080fd5b815180151581146106b257600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561076857816000190482111561074e5761074e610717565b8085161561075b57918102915b93841c9390800290610732565b509250929050565b60008261077f5750600161065c565b8161078c5750600061065c565b81600181146107a257600281146107ac576107c8565b600191505061065c565b60ff8411156107bd576107bd610717565b50506001821b61065c565b5060208310610133831016604e8410600b84101617156107eb575081810a61065c565b6107f5838361072d565b806000190482111561080957610809610717565b029392505050565b60006106b260ff841683610770565b808202811582820484141761065c5761065c610717565b60008261085457634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220fbba1dc5e9e8003bee80fbc56e8761c6690d43223c0657c00977488b61ebc9bb64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003ea94abcbaafb7e2bfe63a0dbe8ff06a077ba9ba0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a000000000000000000000000d9343a049d5dbd89cd19dc6bca8c48fb3a0a42a70000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : _owner (address): 0x3Ea94AbCBAaFb7E2BfE63a0dBe8Ff06a077bA9bA
Arg [1] : _orion (address): 0x0258F474786DdFd37ABCE6df6BBb1Dd5dfC4434a
Arg [2] : _lumia (address): 0xD9343a049D5DBd89CD19DC6BcA8c48fB3a0a42a7
Arg [3] : _conversionScaleFactor (uint256): 1
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000003ea94abcbaafb7e2bfe63a0dbe8ff06a077ba9ba
Arg [1] : 0000000000000000000000000258f474786ddfd37abce6df6bbb1dd5dfc4434a
Arg [2] : 000000000000000000000000d9343a049d5dbd89cd19dc6bca8c48fb3a0a42a7
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $1.14 | 575,964.5963 | $656,599.64 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.