Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Loading...
Loading
Contract Name:
AvoConfigV1
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 10000000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
1234567891011121314151617181920212223242526// SPDX-License-Identifier: MITpragma solidity >=0.8.18;import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";/// @dev This is an auxiliary contract used to set up immutable config values of Avocado contracts at deployment/// without influencing deterministic address (constructor args)./// Once values have been set up correctly, owner could `renounceOwnership`./// Expected owner is AvoMultisigAdmin contract.contract AvoConfigV1 is Ownable {struct AvocadoMultisigConfig {/// @param authorizedMinFee_ minimum for fee charged via `castAuthorized()` to charge if/// `AvoRegistry.calcFee()` would fail.uint256 authorizedMinFee;/// @param authorizedMaxFee_ maximum for fee charged via `castAuthorized()`. If AvoRegistry/// returns a fee higher than this, then `authorizedMaxFee_` is charged as fee instead.uint256 authorizedMaxFee;/// @param authorizedFeeCollector_ address that the fee charged via `castAuthorized()` is sent to in the fallback case.address authorizedFeeCollector;}struct AvoDepositManagerConfig {address depositToken;}struct AvoSignersListConfig {
1234567891011121314151617181920212223242526// 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.
123456789101112131415161718192021222324// 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;}}
12345678910111213141516171819{"optimizer": {"enabled": true,"runs": 10000000},"libraries": {},"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":"owner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AvoConfig__InvalidConfig","type":"error"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"authorizedMinFee","type":"uint256"},{"internalType":"uint256","name":"authorizedMaxFee","type":"uint256"},{"internalType":"address","name":"authorizedFeeCollector","type":"address"}],"indexed":false,"internalType":"struct AvoConfigV1.AvocadoMultisigConfig","name":"avocadoMultisigConfig","type":"tuple"},{"components":[{"internalType":"address","name":"depositToken","type":"address"}],"indexed":false,"internalType":"struct AvoConfigV1.AvoDepositManagerConfig","name":"avoDepositManagerConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"trackInStorage","type":"bool"}],"indexed":false,"internalType":"struct AvoConfigV1.AvoSignersListConfig","name":"avoSignersListConfig","type":"tuple"}],"name":"ConfigSet","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":[],"name":"avoDepositManagerConfig","outputs":[{"internalType":"address","name":"depositToken","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"avoSignersListConfig","outputs":[{"internalType":"bool","name":"trackInStorage","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"avocadoMultisigConfig","outputs":[{"internalType":"uint256","name":"authorizedMinFee","type":"uint256"},{"internalType":"uint256","name":"authorizedMaxFee","type":"uint256"},{"internalType":"address","name":"authorizedFeeCollector","type":"address"}],"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":[{"components":[{"internalType":"uint256","name":"authorizedMinFee","type":"uint256"},{"internalType":"uint256","name":"authorizedMaxFee","type":"uint256"},{"internalType":"address","name":"authorizedFeeCollector","type":"address"}],"internalType":"struct AvoConfigV1.AvocadoMultisigConfig","name":"avocadoMultisigConfig_","type":"tuple"},{"components":[{"internalType":"address","name":"depositToken","type":"address"}],"internalType":"struct AvoConfigV1.AvoDepositManagerConfig","name":"avoDepositManagerConfig_","type":"tuple"},{"components":[{"internalType":"bool","name":"trackInStorage","type":"bool"}],"internalType":"struct AvoConfigV1.AvoSignersListConfig","name":"avoSignersListConfig_","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161072138038061072183398101604081905261002f91610097565b61003833610047565b61004181610047565b506100c7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100a957600080fd5b81516001600160a01b03811681146100c057600080fd5b9392505050565b61064b806100d66000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806389492a9f1161005b57806389492a9f1461012f5780638da5cb5b1461014c5780639a08f9e41461016a578063f2fde38b1461017d57600080fd5b80632271f8db14610082578063616ffd82146100e0578063715018a614610125575b600080fd5b6001546002546003546100aa92919073ffffffffffffffffffffffffffffffffffffffff1683565b60408051938452602084019290925273ffffffffffffffffffffffffffffffffffffffff16908201526060015b60405180910390f35b6004546101009073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100d7565b61012d610190565b005b60055461013c9060ff1681565b60405190151581526020016100d7565b60005473ffffffffffffffffffffffffffffffffffffffff16610100565b61012d61017836600461048c565b6101a4565b61012d61018b3660046104fb565b6102c2565b61019861037e565b6101a260006103ff565b565b6101ac61037e565b823515806101bc57506020830135155b806101ec575060006101d460608501604086016104fb565b73ffffffffffffffffffffffffffffffffffffffff16145b806101fb575060208301358335115b15610232576040517f9d9c333b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600161023f828261051f565b506000905061025160208401846104fb565b73ffffffffffffffffffffffffffffffffffffffff160361029e576040517f9d9c333b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160046102ab8282610582565b5081905060056102bb82826105d0565b5050505050565b6102ca61037e565b73ffffffffffffffffffffffffffffffffffffffff8116610372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61037b816103ff565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146101a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610369565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561048657600080fd5b50919050565b600080600083850360a08112156104a257600080fd5b60608112156104b057600080fd5b508392506104c18560608601610474565b91506104d08560808601610474565b90509250925092565b73ffffffffffffffffffffffffffffffffffffffff8116811461037b57600080fd5b60006020828403121561050d57600080fd5b8135610518816104d9565b9392505050565b8135815560208201356001820155604082013561053b816104d9565b6002820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316179055505050565b813561058d816104d9565b81547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8216178255505050565b81358015158082146105e157600080fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00835416915060ff8116821783555050505056fea2646970667358221220084cc4e364240868a60e9c7768f62a90f3750a22b49018103abac1dea1e4388964736f6c6343000812003300000000000000000000000091ffc68d5021a08b54e5bc9903cac640ac271f0b
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c806389492a9f1161005b57806389492a9f1461012f5780638da5cb5b1461014c5780639a08f9e41461016a578063f2fde38b1461017d57600080fd5b80632271f8db14610082578063616ffd82146100e0578063715018a614610125575b600080fd5b6001546002546003546100aa92919073ffffffffffffffffffffffffffffffffffffffff1683565b60408051938452602084019290925273ffffffffffffffffffffffffffffffffffffffff16908201526060015b60405180910390f35b6004546101009073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100d7565b61012d610190565b005b60055461013c9060ff1681565b60405190151581526020016100d7565b60005473ffffffffffffffffffffffffffffffffffffffff16610100565b61012d61017836600461048c565b6101a4565b61012d61018b3660046104fb565b6102c2565b61019861037e565b6101a260006103ff565b565b6101ac61037e565b823515806101bc57506020830135155b806101ec575060006101d460608501604086016104fb565b73ffffffffffffffffffffffffffffffffffffffff16145b806101fb575060208301358335115b15610232576040517f9d9c333b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600161023f828261051f565b506000905061025160208401846104fb565b73ffffffffffffffffffffffffffffffffffffffff160361029e576040517f9d9c333b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160046102ab8282610582565b5081905060056102bb82826105d0565b5050505050565b6102ca61037e565b73ffffffffffffffffffffffffffffffffffffffff8116610372576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61037b816103ff565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146101a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610369565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561048657600080fd5b50919050565b600080600083850360a08112156104a257600080fd5b60608112156104b057600080fd5b508392506104c18560608601610474565b91506104d08560808601610474565b90509250925092565b73ffffffffffffffffffffffffffffffffffffffff8116811461037b57600080fd5b60006020828403121561050d57600080fd5b8135610518816104d9565b9392505050565b8135815560208201356001820155604082013561053b816104d9565b6002820180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316179055505050565b813561058d816104d9565b81547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8216178255505050565b81358015158082146105e157600080fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00835416915060ff8116821783555050505056fea2646970667358221220084cc4e364240868a60e9c7768f62a90f3750a22b49018103abac1dea1e4388964736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000091ffc68d5021a08b54e5bc9903cac640ac271f0b
-----Decoded View---------------
Arg [0] : owner_ (address): 0x91fFc68D5021A08b54E5bC9903Cac640aC271F0b
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000091ffc68d5021a08b54e5bc9903cac640ac271f0b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.