Source Code
Latest 25 from a total of 28 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Amplify | 37986662 | 96 days ago | IN | 0 ETH | 0.00000656 | ||||
| Amplify | 37986653 | 96 days ago | IN | 0 ETH | 0.00000681 | ||||
| Amplify | 37986636 | 96 days ago | IN | 0 ETH | 0.00000654 | ||||
| Amplify | 37986631 | 96 days ago | IN | 0 ETH | 0.00000834 | ||||
| Amplify | 37986625 | 96 days ago | IN | 0 ETH | 0.00000681 | ||||
| Amplify | 37986620 | 96 days ago | IN | 0 ETH | 0.00000865 | ||||
| Amplify | 37986614 | 96 days ago | IN | 0 ETH | 0.00000878 | ||||
| Amplify | 37986611 | 96 days ago | IN | 0 ETH | 0.00000653 | ||||
| Amplify | 37986601 | 96 days ago | IN | 0 ETH | 0.00000659 | ||||
| Amplify | 37986596 | 96 days ago | IN | 0 ETH | 0.00000657 | ||||
| Amplify | 37986590 | 96 days ago | IN | 0 ETH | 0.00000624 | ||||
| Amplify | 37986585 | 96 days ago | IN | 0 ETH | 0.00000621 | ||||
| Amplify | 37986579 | 96 days ago | IN | 0 ETH | 0.00000679 | ||||
| Amplify | 37974736 | 96 days ago | IN | 0 ETH | 0.00000909 | ||||
| Amplify | 37974727 | 96 days ago | IN | 0 ETH | 0.00000926 | ||||
| Amplify | 37974721 | 96 days ago | IN | 0 ETH | 0.0000092 | ||||
| Amplify | 37971700 | 96 days ago | IN | 0 ETH | 0.00000192 | ||||
| Amplify | 37971636 | 96 days ago | IN | 0 ETH | 0.00000192 | ||||
| Amplify | 37970492 | 96 days ago | IN | 0 ETH | 0.00000398 | ||||
| Amplify | 37970417 | 96 days ago | IN | 0 ETH | 0.00000487 | ||||
| Amplify | 37970401 | 96 days ago | IN | 0 ETH | 0.00000515 | ||||
| Amplify | 37970386 | 96 days ago | IN | 0 ETH | 0.00000543 | ||||
| Amplify | 37969766 | 96 days ago | IN | 0 ETH | 0.00000218 | ||||
| Amplify | 37969717 | 96 days ago | IN | 0 ETH | 0.0000021 | ||||
| Amplify | 37969290 | 96 days ago | IN | 0 ETH | 0.00000298 |
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x0aE93746...a712cf5Aa The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
FlamingStarAmplifier
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/access/Ownable.sol";
interface IERC20 {
function transfer(address to, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
}
/**
* @title FlamingStarAmplifier
* @notice Creates 33 transfers in one transaction to generate color events
* @dev Tokens sent to generated addresses are permanently burned
*/
contract FlamingStarAmplifier is Ownable {
address public flamingStarToken;
uint256 public cascadeCounter;
uint256 public constant TRANSFER_COUNT = 33;
uint256 public constant AMOUNT_PER_TRANSFER = 1e18;
constructor(address _flamingStarToken, address _owner) Ownable(_owner) {
require(_flamingStarToken != address(0), "Invalid token address");
flamingStarToken = _flamingStarToken;
}
/// @notice Update the token address (owner only)
function setToken(address _newToken) external onlyOwner {
require(_newToken != address(0), "Invalid token address");
flamingStarToken = _newToken;
}
/// @notice Returns contract's FSTAR balance
function getBalance() external view returns (uint256) {
return IERC20(flamingStarToken).balanceOf(address(this));
}
/// @notice Returns how many times amplify() can be called with current balance
function getRemainingAmplifies() external view returns (uint256) {
uint256 balance = IERC20(flamingStarToken).balanceOf(address(this));
return balance / (TRANSFER_COUNT * AMOUNT_PER_TRANSFER);
}
/// @notice Transfers 1 FSTAR from contract balance to 33 unique addresses (callable by anyone)
function amplify() external {
uint256 cascadeId = cascadeCounter++;
bytes32 seed = keccak256(abi.encodePacked(
block.timestamp,
block.number,
msg.sender,
cascadeId
));
IERC20 token = IERC20(flamingStarToken);
for (uint256 i = 0; i < TRANSFER_COUNT; i++) {
address recipient = address(uint160(uint256(
keccak256(abi.encodePacked(seed, i))
)));
require(
token.transfer(recipient, AMOUNT_PER_TRANSFER),
"Transfer failed"
);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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 v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_flamingStarToken","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"AMOUNT_PER_TRANSFER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amplify","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cascadeCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flamingStarToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainingAmplifies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_newToken","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x608060405234801561001057600080fd5b506040516107dd3803806107dd83398101604081905261002f91610151565b806001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100e5565b506001600160a01b0382166100bf5760405162461bcd60e51b815260206004820152601560248201527f496e76616c696420746f6b656e206164647265737300000000000000000000006044820152606401610056565b50600180546001600160a01b0319166001600160a01b0392909216919091179055610184565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014c57600080fd5b919050565b6000806040838503121561016457600080fd5b61016d83610135565b915061017b60208401610135565b90509250929050565b61064a806101936000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063715018a611610071578063715018a614610120578063857c496a146101285780638c3512c6146101305780638da5cb5b14610139578063f2fde38b1461014a578063f80a05d91461015d57600080fd5b806312065fe0146100ae578063144fa6d7146100c9578063146ba28c146100de5780632a0823ee146101095780636def1cfa14610118575b600080fd5b6100b6610165565b6040519081526020015b60405180910390f35b6100dc6100d736600461053b565b6101d7565b005b6001546100f1906001600160a01b031681565b6040516001600160a01b0390911681526020016100c0565b6100b6670de0b6b3a764000081565b6100b6602181565b6100dc610254565b6100b6610268565b6100b660025481565b6000546001600160a01b03166100f1565b6100dc61015836600461053b565b6102fe565b6100dc61033c565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156101ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d2919061056b565b905090565b6101df6104be565b6001600160a01b0381166102325760405162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b60448201526064015b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61025c6104be565b61026660006104eb565b565b6001546040516370a0823160e01b815230600482015260009182916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156102b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d9919061056b565b90506102ee670de0b6b3a7640000602161059a565b6102f890826105b7565b91505090565b6103066104be565b6001600160a01b03811661033057604051631e4fbdf760e01b815260006004820152602401610229565b610339816104eb565b50565b600280546000918261034d836105d9565b9190505590506000424333846040516020016103949493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b60408051601f1981840301815291905280516020909101206001549091506001600160a01b031660005b60218110156104b857604080516020810185905290810182905260009060600160408051808303601f1901815290829052805160209091012063a9059cbb60e01b82526001600160a01b038082166004840152670de0b6b3a7640000602484015290925084169063a9059cbb906044016020604051808303816000875af115801561044d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047191906105f2565b6104af5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610229565b506001016103be565b50505050565b6000546001600160a01b031633146102665760405163118cdaa760e01b8152336004820152602401610229565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561054d57600080fd5b81356001600160a01b038116811461056457600080fd5b9392505050565b60006020828403121561057d57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105b1576105b1610584565b92915050565b6000826105d457634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016105eb576105eb610584565b5060010190565b60006020828403121561060457600080fd5b8151801515811461056457600080fdfea264697066735822122069b91d52cae41f2331baddbc209422643839c0911838cb26e4dbb2d5821e08d664736f6c63430008180033000000000000000000000000727bcedaea3661fd31a9e03b4f59dda6e5aa38c4000000000000000000000000026c6f753beb4ff3f6748fea5657a1fb0ddedb74
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063715018a611610071578063715018a614610120578063857c496a146101285780638c3512c6146101305780638da5cb5b14610139578063f2fde38b1461014a578063f80a05d91461015d57600080fd5b806312065fe0146100ae578063144fa6d7146100c9578063146ba28c146100de5780632a0823ee146101095780636def1cfa14610118575b600080fd5b6100b6610165565b6040519081526020015b60405180910390f35b6100dc6100d736600461053b565b6101d7565b005b6001546100f1906001600160a01b031681565b6040516001600160a01b0390911681526020016100c0565b6100b6670de0b6b3a764000081565b6100b6602181565b6100dc610254565b6100b6610268565b6100b660025481565b6000546001600160a01b03166100f1565b6100dc61015836600461053b565b6102fe565b6100dc61033c565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156101ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d2919061056b565b905090565b6101df6104be565b6001600160a01b0381166102325760405162461bcd60e51b8152602060048201526015602482015274496e76616c696420746f6b656e206164647265737360581b60448201526064015b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61025c6104be565b61026660006104eb565b565b6001546040516370a0823160e01b815230600482015260009182916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156102b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d9919061056b565b90506102ee670de0b6b3a7640000602161059a565b6102f890826105b7565b91505090565b6103066104be565b6001600160a01b03811661033057604051631e4fbdf760e01b815260006004820152602401610229565b610339816104eb565b50565b600280546000918261034d836105d9565b9190505590506000424333846040516020016103949493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b60408051601f1981840301815291905280516020909101206001549091506001600160a01b031660005b60218110156104b857604080516020810185905290810182905260009060600160408051808303601f1901815290829052805160209091012063a9059cbb60e01b82526001600160a01b038082166004840152670de0b6b3a7640000602484015290925084169063a9059cbb906044016020604051808303816000875af115801561044d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047191906105f2565b6104af5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610229565b506001016103be565b50505050565b6000546001600160a01b031633146102665760405163118cdaa760e01b8152336004820152602401610229565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561054d57600080fd5b81356001600160a01b038116811461056457600080fd5b9392505050565b60006020828403121561057d57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176105b1576105b1610584565b92915050565b6000826105d457634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016105eb576105eb610584565b5060010190565b60006020828403121561060457600080fd5b8151801515811461056457600080fdfea264697066735822122069b91d52cae41f2331baddbc209422643839c0911838cb26e4dbb2d5821e08d664736f6c63430008180033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.