Source Code
Overview
POL Balance
POL Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Ownersh... | 43642512 | 958 days ago | IN | 0 POL | 0.00455852 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FlashMinter
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: CC0-1.0
pragma solidity 0.8.15;
import "@openzeppelin/contracts/interfaces/IERC3156FlashLender.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../interfaces/IMintableERC20.sol";
import "../interfaces/IBurnableERC20.sol";
import "../utils/Ownable.sol";
/**
* @title FlashMinter
* BOB flash minter middleware.
*/
contract FlashMinter is IERC3156FlashLender, ReentrancyGuard, Ownable {
bytes32 private constant _RETURN_VALUE = keccak256("ERC3156FlashBorrower.onFlashLoan");
address public immutable token;
uint96 public limit; // max limit for flash mint amount
address public treasury; // receiver of flash mint fees
uint64 public fee; // fee percentage * 1 ether
uint96 public maxFee; // max fee in absolute values
event UpdateConfig(uint96 limit, address treasury, uint64 fee, uint96 maxFee);
event FlashMint(address indexed _receiver, uint256 _amount, uint256 _fee);
constructor(address _token, uint96 _limit, address _treasury, uint64 _fee, uint96 _maxFee) {
token = _token;
_updateConfig(_limit, _treasury, _fee, _maxFee);
}
function updateConfig(uint96 _limit, address _treasury, uint64 _fee, uint96 _maxFee) external onlyOwner {
_updateConfig(_limit, _treasury, _fee, _maxFee);
}
function _updateConfig(uint96 _limit, address _treasury, uint64 _fee, uint96 _maxFee) internal {
require(_treasury != address(0) || _fee == 0, "FlashMinter: invalid fee config");
limit = _limit;
treasury = _treasury;
_setFees(_fee, _maxFee);
emit UpdateConfig(_limit, _treasury, _fee, _maxFee);
}
function _setFees(uint64 _fee, uint96 _maxFee) internal {
require(_fee <= 0.01 ether, "FlashMinter: fee too large");
(fee, maxFee) = (_fee, _maxFee);
}
/**
* @dev Returns the maximum amount of tokens available for loan.
* @param _token The address of the token that is requested.
* @return The amount of token that can be loaned.
*/
function maxFlashLoan(address _token) public view virtual override returns (uint256) {
return token == _token ? limit : 0;
}
/**
* @dev Returns the fee applied when doing flash loans.
* @param _token The token to be flash loaned.
* @param _amount The amount of tokens to be loaned.
* @return The fees applied to the corresponding flash loan.
*/
function flashFee(address _token, uint256 _amount) public view virtual override returns (uint256) {
require(token == _token, "FlashMinter: wrong token");
return _flashFee(_amount);
}
/**
* @dev Returns the fee applied when doing flash loans.
* @param _amount The amount of tokens to be loaned.
* @return The fees applied to the corresponding flash loan.
*/
function _flashFee(uint256 _amount) internal view virtual returns (uint256) {
(uint64 _fee, uint96 _maxFee) = (fee, maxFee);
uint256 flashFee = _amount * _fee / 1 ether;
return flashFee > _maxFee ? _maxFee : flashFee;
}
/**
* @dev Performs a flash loan. New tokens are minted and sent to the
* `receiver`, who is required to implement the IERC3156FlashBorrower
* interface. By the end of the flash loan, the receiver is expected to own
* amount + fee tokens and have them approved back to the token contract itself so
* they can be burned.
* @param _receiver The receiver of the flash loan. Should implement the
* IERC3156FlashBorrower.onFlashLoan interface.
* @param _token The token to be flash loaned. Only configured token is
* supported.
* @param _amount The amount of tokens to be loaned.
* @param _data An arbitrary data that is passed to the receiver.
* @return `true` if the flash loan was successful.
*/
function flashLoan(
IERC3156FlashBorrower _receiver,
address _token,
uint256 _amount,
bytes calldata _data
)
public
override
nonReentrant
returns (bool)
{
require(token == _token, "FlashMinter: wrong token");
require(_amount <= limit, "FlashMinter: amount exceeds maxFlashLoan");
uint256 flashFee = _flashFee(_amount);
IMintableERC20(_token).mint(address(_receiver), _amount);
require(
_receiver.onFlashLoan(msg.sender, _token, _amount, flashFee, _data) == _RETURN_VALUE,
"FlashMinter: invalid return value"
);
IBurnableERC20(_token).burnFrom(address(_receiver), _amount);
if (flashFee > 0) {
IERC20(_token).transferFrom(address(_receiver), treasury, flashFee);
}
emit FlashMint(address(_receiver), _amount, flashFee);
return true;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC3156FlashLender.sol)
pragma solidity ^0.8.0;
import "./IERC3156FlashBorrower.sol";
/**
* @dev Interface of the ERC3156 FlashLender, as defined in
* https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
*
* _Available since v4.1._
*/
interface IERC3156FlashLender {
/**
* @dev The amount of currency available to be lended.
* @param token The loan currency.
* @return The amount of `token` that can be borrowed.
*/
function maxFlashLoan(address token) external view returns (uint256);
/**
* @dev The fee to be charged for a given loan.
* @param token The loan currency.
* @param amount The amount of tokens lent.
* @return The amount of `token` to be charged for the loan, on top of the returned principal.
*/
function flashFee(address token, uint256 amount) external view returns (uint256);
/**
* @dev Initiate a flash loan.
* @param receiver The receiver of the tokens in the loan, and the receiver of the callback.
* @param token The loan currency.
* @param amount The amount of tokens lent.
* @param data Arbitrary data structure, intended to contain user-defined parameters.
*/
function flashLoan(
IERC3156FlashBorrower receiver,
address token,
uint256 amount,
bytes calldata data
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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);
/**
* @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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: CC0-1.0
pragma solidity 0.8.15;
interface IMintableERC20 {
function mint(address to, uint256 amount) external;
}// SPDX-License-Identifier: CC0-1.0
pragma solidity 0.8.15;
interface IBurnableERC20 {
function burn(uint256 amount) external;
function burnFrom(address user, uint256 amount) external;
}// SPDX-License-Identifier: CC0-1.0
pragma solidity 0.8.15;
import "@openzeppelin/contracts/access/Ownable.sol" as OZOwnable;
/**
* @title Ownable
*/
contract Ownable is OZOwnable.Ownable {
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view override {
require(_isOwner(), "Ownable: caller is not the owner");
}
/**
* @dev Tells if caller is the contract owner.
* @return true, if caller is the contract owner.
*/
function _isOwner() internal view virtual returns (bool) {
return owner() == _msgSender();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (interfaces/IERC3156FlashBorrower.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC3156 FlashBorrower, as defined in
* https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
*
* _Available since v4.1._
*/
interface IERC3156FlashBorrower {
/**
* @dev Receive a flash loan.
* @param initiator The initiator of the loan.
* @param token The loan currency.
* @param amount The amount of tokens lent.
* @param fee The additional amount of tokens to repay.
* @param data Arbitrary data structure, intended to contain user-defined parameters.
* @return The keccak256 hash of "ERC3156FlashBorrower.onFlashLoan"
*/
function onFlashLoan(
address initiator,
address token,
uint256 amount,
uint256 fee,
bytes calldata data
) external returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 v4.4.1 (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;
}
}{
"remappings": [
"@openzeppelin/=lib/openzeppelin-contracts/",
"@quickswap/=lib/@quickswap/contracts/",
"@uniswap/=lib/@uniswap/",
"@zkbob/=lib/zkbob-contracts/src/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/"
],
"optimizer": {
"enabled": true,
"runs": 200,
"details": {
"yul": true,
"yulDetails": {
"stackAllocation": true
}
}
},
"metadata": {
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint96","name":"_limit","type":"uint96"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint64","name":"_fee","type":"uint64"},{"internalType":"uint96","name":"_maxFee","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"FlashMint","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":false,"internalType":"uint96","name":"limit","type":"uint96"},{"indexed":false,"internalType":"address","name":"treasury","type":"address"},{"indexed":false,"internalType":"uint64","name":"fee","type":"uint64"},{"indexed":false,"internalType":"uint96","name":"maxFee","type":"uint96"}],"name":"UpdateConfig","type":"event"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"flashFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC3156FlashBorrower","name":"_receiver","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"flashLoan","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"limit","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFee","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"maxFlashLoan","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":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint96","name":"_limit","type":"uint96"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint64","name":"_fee","type":"uint64"},{"internalType":"uint96","name":"_maxFee","type":"uint96"}],"name":"updateConfig","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b50604051620010ad380380620010ad8339810160408190526200003491620002be565b600160005562000044336200006a565b6001600160a01b0385166080526200005f84848484620000bc565b50505050506200033c565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316151580620000db57506001600160401b038216155b6200012d5760405162461bcd60e51b815260206004820152601f60248201527f466c6173684d696e7465723a20696e76616c69642066656520636f6e6669670060448201526064015b60405180910390fd5b600180546001600160a01b03908116600160a01b6001600160601b0388160217909155600280546001600160a01b031916918516919091179055620001738282620001da565b604080516001600160601b0386811682526001600160a01b03861660208301526001600160401b038516828401528316606082015290517f4fb430081bf322530814d2253290cc12165a17225901269582b19c810e134a209181900360800190a150505050565b662386f26fc10000826001600160401b031611156200023c5760405162461bcd60e51b815260206004820152601a60248201527f466c6173684d696e7465723a2066656520746f6f206c61726765000000000000604482015260640162000124565b600380546001600160601b039092166001600160601b0319909216919091179055600280546001600160401b03909216600160a01b02600160a01b600160e01b0319909216919091179055565b80516001600160a01b0381168114620002a157600080fd5b919050565b80516001600160601b0381168114620002a157600080fd5b600080600080600060a08688031215620002d757600080fd5b620002e28662000289565b9450620002f260208701620002a6565b9350620003026040870162000289565b60608701519093506001600160401b03811681146200032057600080fd5b91506200033060808701620002a6565b90509295509295909350565b608051610d406200036d600039600081816101ff01528181610237015281816105d8015261066b0152610d406000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063a4d66daf11610071578063a4d66daf14610173578063c1762edf1461018d578063d9d98ce4146101a0578063ddca3f43146101b3578063f2fde38b146101e7578063fc0c546a146101fa57600080fd5b806301f59d16146100b95780635cffe9de146100e9578063613255ab1461010c57806361d027b31461012d578063715018a6146101585780638da5cb5b14610162575b600080fd5b6003546100cc906001600160601b031681565b6040516001600160601b0390911681526020015b60405180910390f35b6100fc6100f7366004610abb565b610221565b60405190151581526020016100e0565b61011f61011a366004610b5a565b6105ca565b6040519081526020016100e0565b600254610140906001600160a01b031681565b6040516001600160a01b0390911681526020016100e0565b61016061062f565b005b6001546001600160a01b0316610140565b6001546100cc90600160a01b90046001600160601b031681565b61016061019b366004610b93565b610643565b61011f6101ae366004610bf8565b61065d565b6002546101ce90600160a01b900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016100e0565b6101606101f5366004610b5a565b6106eb565b6101407f000000000000000000000000000000000000000000000000000000000000000081565b600061022b610764565b846001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146102ac5760405162461bcd60e51b8152602060048201526018602482015277233630b9b426b4b73a32b91d103bb937b733903a37b5b2b760411b60448201526064015b60405180910390fd5b600154600160a01b90046001600160601b031684111561031f5760405162461bcd60e51b815260206004820152602860248201527f466c6173684d696e7465723a20616d6f756e742065786365656473206d6178466044820152673630b9b42637b0b760c11b60648201526084016102a3565b600061032a856107bd565b6040516340c10f1960e01b81526001600160a01b03898116600483015260248201889052919250908716906340c10f1990604401600060405180830381600087803b15801561037857600080fd5b505af115801561038c573d6000803e3d6000fd5b50506040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd992506001600160a01b038a1691506323e30c8b906103e89033908b908b9088908c908c90600401610c24565b6020604051808303816000875af1158015610407573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042b9190610c80565b146104825760405162461bcd60e51b815260206004820152602160248201527f466c6173684d696e7465723a20696e76616c69642072657475726e2076616c756044820152606560f81b60648201526084016102a3565b60405163079cc67960e41b81526001600160a01b038881166004830152602482018790528716906379cc679090604401600060405180830381600087803b1580156104cc57600080fd5b505af11580156104e0573d6000803e3d6000fd5b50505050600081111561056e576002546040516323b872dd60e01b81526001600160a01b038981166004830152918216602482015260448101839052908716906323b872dd906064016020604051808303816000875af1158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c9190610c99565b505b60408051868152602081018390526001600160a01b038916917fc1d5a9a0a7cdddbc3db5b9aeffbc9fa1ba5f7275fbd46d9de20ec463f8b8cfbd910160405180910390a260019150506105c16001600055565b95945050505050565b6000816001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461060c576000610620565b600154600160a01b90046001600160601b03165b6001600160601b031692915050565b610637610828565b6106416000610888565b565b61064b610828565b610657848484846108da565b50505050565b6000826001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146106db5760405162461bcd60e51b8152602060048201526018602482015277233630b9b426b4b73a32b91d103bb937b733903a37b5b2b760411b60448201526064016102a3565b6106e4826107bd565b9392505050565b6106f3610828565b6001600160a01b0381166107585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102a3565b61076181610888565b50565b6002600054036107b65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102a3565b6002600055565b600254600354600091600160a01b900467ffffffffffffffff16906001600160601b031682670de0b6b3a76400006107f58487610cbb565b6107ff9190610ce8565b9050816001600160601b0316811161081757806105c1565b506001600160601b03169392505050565b61083c6001546001600160a01b0316331490565b6106415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102a3565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383161515806108f9575067ffffffffffffffff8216155b6109455760405162461bcd60e51b815260206004820152601f60248201527f466c6173684d696e7465723a20696e76616c69642066656520636f6e6669670060448201526064016102a3565b600180546001600160a01b03908116600160a01b6001600160601b0388160217909155600280546001600160a01b03191691851691909117905561098982826109f1565b604080516001600160601b0386811682526001600160a01b038616602083015267ffffffffffffffff8516828401528316606082015290517f4fb430081bf322530814d2253290cc12165a17225901269582b19c810e134a209181900360800190a150505050565b662386f26fc100008267ffffffffffffffff161115610a525760405162461bcd60e51b815260206004820152601a60248201527f466c6173684d696e7465723a2066656520746f6f206c6172676500000000000060448201526064016102a3565b600380546001600160601b039092166bffffffffffffffffffffffff199092169190911790556002805467ffffffffffffffff909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6001600160a01b038116811461076157600080fd5b600080600080600060808688031215610ad357600080fd5b8535610ade81610aa6565b94506020860135610aee81610aa6565b935060408601359250606086013567ffffffffffffffff80821115610b1257600080fd5b818801915088601f830112610b2657600080fd5b813581811115610b3557600080fd5b896020828501011115610b4757600080fd5b9699959850939650602001949392505050565b600060208284031215610b6c57600080fd5b81356106e481610aa6565b80356001600160601b0381168114610b8e57600080fd5b919050565b60008060008060808587031215610ba957600080fd5b610bb285610b77565b93506020850135610bc281610aa6565b9250604085013567ffffffffffffffff81168114610bdf57600080fd5b9150610bed60608601610b77565b905092959194509250565b60008060408385031215610c0b57600080fd5b8235610c1681610aa6565b946020939093013593505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208284031215610c9257600080fd5b5051919050565b600060208284031215610cab57600080fd5b815180151581146106e457600080fd5b6000816000190483118215151615610ce357634e487b7160e01b600052601160045260246000fd5b500290565b600082610d0557634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220aef490cb7ce920b2407adeaebb961ad05ae25a1d5366c3a32ec340a6680ede8564736f6c634300080f0033000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000904b6ebd837d9ee6330cf357f902172e9dfedfd500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063a4d66daf11610071578063a4d66daf14610173578063c1762edf1461018d578063d9d98ce4146101a0578063ddca3f43146101b3578063f2fde38b146101e7578063fc0c546a146101fa57600080fd5b806301f59d16146100b95780635cffe9de146100e9578063613255ab1461010c57806361d027b31461012d578063715018a6146101585780638da5cb5b14610162575b600080fd5b6003546100cc906001600160601b031681565b6040516001600160601b0390911681526020015b60405180910390f35b6100fc6100f7366004610abb565b610221565b60405190151581526020016100e0565b61011f61011a366004610b5a565b6105ca565b6040519081526020016100e0565b600254610140906001600160a01b031681565b6040516001600160a01b0390911681526020016100e0565b61016061062f565b005b6001546001600160a01b0316610140565b6001546100cc90600160a01b90046001600160601b031681565b61016061019b366004610b93565b610643565b61011f6101ae366004610bf8565b61065d565b6002546101ce90600160a01b900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016100e0565b6101606101f5366004610b5a565b6106eb565b6101407f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b81565b600061022b610764565b846001600160a01b03167f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b6001600160a01b0316146102ac5760405162461bcd60e51b8152602060048201526018602482015277233630b9b426b4b73a32b91d103bb937b733903a37b5b2b760411b60448201526064015b60405180910390fd5b600154600160a01b90046001600160601b031684111561031f5760405162461bcd60e51b815260206004820152602860248201527f466c6173684d696e7465723a20616d6f756e742065786365656473206d6178466044820152673630b9b42637b0b760c11b60648201526084016102a3565b600061032a856107bd565b6040516340c10f1960e01b81526001600160a01b03898116600483015260248201889052919250908716906340c10f1990604401600060405180830381600087803b15801561037857600080fd5b505af115801561038c573d6000803e3d6000fd5b50506040516323e30c8b60e01b81527f439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd992506001600160a01b038a1691506323e30c8b906103e89033908b908b9088908c908c90600401610c24565b6020604051808303816000875af1158015610407573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061042b9190610c80565b146104825760405162461bcd60e51b815260206004820152602160248201527f466c6173684d696e7465723a20696e76616c69642072657475726e2076616c756044820152606560f81b60648201526084016102a3565b60405163079cc67960e41b81526001600160a01b038881166004830152602482018790528716906379cc679090604401600060405180830381600087803b1580156104cc57600080fd5b505af11580156104e0573d6000803e3d6000fd5b50505050600081111561056e576002546040516323b872dd60e01b81526001600160a01b038981166004830152918216602482015260448101839052908716906323b872dd906064016020604051808303816000875af1158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c9190610c99565b505b60408051868152602081018390526001600160a01b038916917fc1d5a9a0a7cdddbc3db5b9aeffbc9fa1ba5f7275fbd46d9de20ec463f8b8cfbd910160405180910390a260019150506105c16001600055565b95945050505050565b6000816001600160a01b03167f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b6001600160a01b03161461060c576000610620565b600154600160a01b90046001600160601b03165b6001600160601b031692915050565b610637610828565b6106416000610888565b565b61064b610828565b610657848484846108da565b50505050565b6000826001600160a01b03167f000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b6001600160a01b0316146106db5760405162461bcd60e51b8152602060048201526018602482015277233630b9b426b4b73a32b91d103bb937b733903a37b5b2b760411b60448201526064016102a3565b6106e4826107bd565b9392505050565b6106f3610828565b6001600160a01b0381166107585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102a3565b61076181610888565b50565b6002600054036107b65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102a3565b6002600055565b600254600354600091600160a01b900467ffffffffffffffff16906001600160601b031682670de0b6b3a76400006107f58487610cbb565b6107ff9190610ce8565b9050816001600160601b0316811161081757806105c1565b506001600160601b03169392505050565b61083c6001546001600160a01b0316331490565b6106415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102a3565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383161515806108f9575067ffffffffffffffff8216155b6109455760405162461bcd60e51b815260206004820152601f60248201527f466c6173684d696e7465723a20696e76616c69642066656520636f6e6669670060448201526064016102a3565b600180546001600160a01b03908116600160a01b6001600160601b0388160217909155600280546001600160a01b03191691851691909117905561098982826109f1565b604080516001600160601b0386811682526001600160a01b038616602083015267ffffffffffffffff8516828401528316606082015290517f4fb430081bf322530814d2253290cc12165a17225901269582b19c810e134a209181900360800190a150505050565b662386f26fc100008267ffffffffffffffff161115610a525760405162461bcd60e51b815260206004820152601a60248201527f466c6173684d696e7465723a2066656520746f6f206c6172676500000000000060448201526064016102a3565b600380546001600160601b039092166bffffffffffffffffffffffff199092169190911790556002805467ffffffffffffffff909216600160a01b0267ffffffffffffffff60a01b19909216919091179055565b6001600160a01b038116811461076157600080fd5b600080600080600060808688031215610ad357600080fd5b8535610ade81610aa6565b94506020860135610aee81610aa6565b935060408601359250606086013567ffffffffffffffff80821115610b1257600080fd5b818801915088601f830112610b2657600080fd5b813581811115610b3557600080fd5b896020828501011115610b4757600080fd5b9699959850939650602001949392505050565b600060208284031215610b6c57600080fd5b81356106e481610aa6565b80356001600160601b0381168114610b8e57600080fd5b919050565b60008060008060808587031215610ba957600080fd5b610bb285610b77565b93506020850135610bc281610aa6565b9250604085013567ffffffffffffffff81168114610bdf57600080fd5b9150610bed60608601610b77565b905092959194509250565b60008060408385031215610c0b57600080fd5b8235610c1681610aa6565b946020939093013593505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208284031215610c9257600080fd5b5051919050565b600060208284031215610cab57600080fd5b815180151581146106e457600080fd5b6000816000190483118215151615610ce357634e487b7160e01b600052601160045260246000fd5b500290565b600082610d0557634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220aef490cb7ce920b2407adeaebb961ad05ae25a1d5366c3a32ec340a6680ede8564736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b000000000000000000000000000000000000000000002a5a058fc295ed000000000000000000000000000000904b6ebd837d9ee6330cf357f902172e9dfedfd500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _token (address): 0xB0B195aEFA3650A6908f15CdaC7D92F8a5791B0B
Arg [1] : _limit (uint96): 200000000000000000000000
Arg [2] : _treasury (address): 0x904B6EBd837d9ee6330CF357f902172e9DFEdFD5
Arg [3] : _fee (uint64): 0
Arg [4] : _maxFee (uint96): 0
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b
Arg [1] : 000000000000000000000000000000000000000000002a5a058fc295ed000000
Arg [2] : 000000000000000000000000904b6ebd837d9ee6330cf357f902172e9dfedfd5
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in POL
Multichain Portfolio | 35 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.