Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 74 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Update Several P... | 24583186 | 32 hrs ago | IN | 0 ETH | 0.00090533 | ||||
| Update Several P... | 24551853 | 5 days ago | IN | 0 ETH | 0.0008179 | ||||
| Update Several P... | 24372554 | 30 days ago | IN | 0 ETH | 0.00081283 | ||||
| Update Several P... | 24302162 | 40 days ago | IN | 0 ETH | 0.00080124 | ||||
| Update Several P... | 24158386 | 60 days ago | IN | 0 ETH | 0.00078219 | ||||
| Update Several P... | 24101496 | 68 days ago | IN | 0 ETH | 0.00077526 | ||||
| Update Several P... | 24053026 | 75 days ago | IN | 0 ETH | 0.00078081 | ||||
| Update Several P... | 24014920 | 80 days ago | IN | 0 ETH | 0.00080197 | ||||
| Update Several P... | 23660419 | 130 days ago | IN | 0 ETH | 0.00081908 | ||||
| Update Several P... | 23494419 | 153 days ago | IN | 0 ETH | 0.00084242 | ||||
| Update Several P... | 23409295 | 165 days ago | IN | 0 ETH | 0.00082369 | ||||
| Update Several P... | 23365743 | 171 days ago | IN | 0 ETH | 0.00083265 | ||||
| Update Several P... | 23336800 | 175 days ago | IN | 0 ETH | 0.00082502 | ||||
| Update Several P... | 23287850 | 182 days ago | IN | 0 ETH | 0.00085483 | ||||
| Update Several P... | 23261788 | 186 days ago | IN | 0 ETH | 0.00067864 | ||||
| Update Several P... | 23260252 | 186 days ago | IN | 0 ETH | 0.00067985 | ||||
| Update Several P... | 23258755 | 186 days ago | IN | 0 ETH | 0.00083065 | ||||
| Update Several P... | 23216396 | 192 days ago | IN | 0 ETH | 0.00086158 | ||||
| Update Several P... | 23165023 | 199 days ago | IN | 0 ETH | 0.00090967 | ||||
| Update Several P... | 23115906 | 206 days ago | IN | 0 ETH | 0.00097414 | ||||
| Update Several P... | 23014867 | 220 days ago | IN | 0 ETH | 0.0009061 | ||||
| Update Several P... | 22666637 | 269 days ago | IN | 0 ETH | 0.00314675 | ||||
| Update Several P... | 22594065 | 279 days ago | IN | 0 ETH | 0.00176115 | ||||
| Update Several P... | 22587264 | 280 days ago | IN | 0 ETH | 0.00172493 | ||||
| Update Several P... | 22564193 | 283 days ago | IN | 0 ETH | 0.00096746 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
exchangeRateContract
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
import "./IDAO.sol";
/// @title exchange rate - the contract to receive quotes from oracle.
contract exchangeRateContract{
/// @notice DAO interface.
IDAO immutable dao;
/// @notice Counter for instruments.
uint16 public instrumentsCount;
/// @notice Gas price to pay if someone wants the oracle to send a quote update out of schedule for one instrument.
uint256 constant public updOnePriceGasCost = 84928;
/// @notice Gas price to pay if someone wants the oracle to send a quote update out of schedule for several instruments.
uint256 constant public updSeveralPricesCost = 87742;
/// @notice Gas price to pay if someone wants the oracle to send a quote update out of schedule for every additional instrument in a bundle.
uint256 constant public updAdditionalPrice = 22700;
/// @notice Address of the author of this contract.
address public author;
/// @notice Address to receive profit gained by this contract from out-of-schedule updates.
address public beneficiary;
/// @notice Authorized address to send updates.
address public updater;
/// @notice The contract may be finalized, which means the beneficiary address cannot be changed anymore.
bool public finalized;
struct Instrument {
uint256 price;
uint128 timeStamp;
}
struct InstrumentDescription {
uint16 id;
string name;
uint8 decimals;
}
/// @notice Instrument storage.
mapping(uint16 => Instrument) public instruments;
/// @notice InstrumentDescription dictionary.
mapping(string => InstrumentDescription) public dictionary;
/// @notice Constructor for the exchangeRateContract contract.
/// @param _INTDAOaddress The address of the main DAO contract.
constructor(address _INTDAOaddress) payable{
dao = IDAO(_INTDAOaddress);
author = msg.sender;
updater = msg.sender;
beneficiary = msg.sender;
}
modifier onlyAuthor{
require(msg.sender == author, "author only");
_;
}
modifier onlyUpdater{
require(msg.sender == updater, "updater only");
_;
}
/// @notice Emitted when someone requests to update a single quote.
/// @param id ID of the instrument.
event priceUpdateRequest (uint16 id);
/// @notice Emitted when someone requests to update several quotes.
/// @param ids Array of IDs.
event severalPricesUpdateRequest (uint16[] ids);
/// @notice Emitted when the price of a certain instrument is updated.
/// @param id ID of the instrument.
event priceUpdated (uint16 id);
/// @notice Event for transferring the profit of the contract.
/// @param profit Amount of profit obtained.
event profit (uint256 profit);
/// @notice Event emitted when the price of a given instrument changes more than the highVolatilityEventBarrierPercent from DAO.
/// @param id ID of the instrument.
event highVolatility(uint16 id);
/// @notice Change the address to receive profit.
/// @param newAddress New address.
function changeBeneficiaryAddress(address payable newAddress) external onlyAuthor{
require(!finalized, "finalized");
beneficiary = newAddress;
}
/// @notice Make the change of the beneficiary address impossible.
function finalize() external onlyAuthor{
require(!finalized, "finalized");
finalized = true;
}
/// @notice Change the address to receive transactions with quotes.
/// @param newAddress New address
function changeUpdaterAddress (address payable newAddress) external onlyAuthor{
updater = newAddress;
}
/// @notice Request a price update. A payable function.
/// @param id ID of the instrument.
function requestPriceUpdate(uint16 id) external payable {
require (msg.value>=2*updOnePriceGasCost*tx.gasprice, "need more ether");
emit priceUpdateRequest(id);
}
/// @notice Request multiple prices update.
/// @param ids Array of IDs.
function requestMultiplePricesUpdate(uint16[] memory ids) external payable {
require (msg.value>= 2 * (ids.length * updAdditionalPrice + updSeveralPricesCost) * tx.gasprice, "need more ether");
emit severalPricesUpdateRequest(ids);
}
/// @notice Update several prices. Only the updater address may invoke it.
/// @param ids Array of IDs
/// @param ids Array of prices
function updateSeveralPrices(uint16[] memory ids, uint256[] memory prices) external onlyUpdater{
uint length = ids.length;
require(length==prices.length, "arrays length");
for (uint16 i = 0; i < length;) {
updPrice(ids[i], prices[i]);
unchecked {
++i;
}
}
}
/// @notice Method to transfer profit.
function transferProfit() external{
payable(beneficiary).transfer(address(this).balance);
emit profit(address(this).balance);
}
/// @notice Method to update a single price.
/// @param id ID of the instrument.
/// @param newPrice New price.
function updateSinglePrice(uint16 id, uint256 newPrice) external onlyUpdater{
updPrice (id, newPrice);
}
function updPrice(uint16 id, uint256 newPrice) internal {
instruments[id].timeStamp = uint128(block.timestamp);
uint256 prevPrice = instruments[id].price;
uint256 move;
if (prevPrice!=0){
if (prevPrice >= newPrice)
move = prevPrice - newPrice;
else
move = newPrice - prevPrice;
if ((move * 100) / prevPrice > dao.params("highVolatilityEventBarrierPercent"))
emit highVolatility(id);
}
instruments[id].price = newPrice;
emit priceUpdated(id);
}
/// @notice Method to add an instrument to storage. It is for updater only.
/// @param symbol Symbol of the instrument.
/// @param name Name of the instrument.
/// @param decimals Number of decimals in the price.
/// @return id ID of the new instrument.
function addInstrument(string memory symbol, string memory name, uint8 decimals) external onlyUpdater returns (uint16 id){
InstrumentDescription storage newInstrumentDescription = dictionary[symbol];
require (bytes(newInstrumentDescription.name).length == 0, "symbol already exist, use updateInstrument");
newInstrumentDescription.id = ++instrumentsCount;
newInstrumentDescription.name = name;
newInstrumentDescription.decimals = decimals;
instruments[newInstrumentDescription.id].timeStamp = uint128(block.timestamp);
return newInstrumentDescription.id;
}
/// @notice Method to update the name and decimals of the instrument. For updater only.
/// @param symbol Symbol of the instrument.
/// @param name Name of the instrument.
/// @param decimals Number of decimals in the price.
function updateInstrument(string memory symbol, string memory name, uint8 decimals) external onlyUpdater{
InstrumentDescription storage newInstrumentDescription = dictionary[symbol];
require(bytes(newInstrumentDescription.name).length != 0,
"Symbol doesn't exist, use addInstrument");
newInstrumentDescription.name = name;
newInstrumentDescription.decimals = decimals;
}
/// @notice Getter of the current price of the instrument.
/// @param symbol Symbol of the instrument.
/// @return Price.
function getPrice(string memory symbol) external view returns (uint256) {
return instruments[dictionary[symbol].id].price;
}
/// @notice Getter of the last time the price was updated for the given instrument.
/// @param symbol Symbol of the instrument
/// @return timeStamp
function timeStamp(string memory symbol) external view returns (uint256) {
return instruments[dictionary[symbol].id].timeStamp;
}
/// @notice Getter of decimals for the given instrument.
/// @param symbol Symbol of the instrument
/// @return decimals
function getDecimals(string memory symbol) external view returns (uint8) {
return dictionary[symbol].decimals;
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.19 <0.9.0;
interface IDAO{
function addresses(string memory) external view returns (address);
function params(string memory) external view returns (uint256);
function isAuthorized(address candidate) external view returns (bool);
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 1000
},
"evmVersion": "cancun",
"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":"_INTDAOaddress","type":"address"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"id","type":"uint16"}],"name":"highVolatility","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"id","type":"uint16"}],"name":"priceUpdateRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"id","type":"uint16"}],"name":"priceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"}],"name":"profit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16[]","name":"ids","type":"uint16[]"}],"name":"severalPricesUpdateRequest","type":"event"},{"inputs":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"addInstrument","outputs":[{"internalType":"uint16","name":"id","type":"uint16"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"author","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"newAddress","type":"address"}],"name":"changeBeneficiaryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newAddress","type":"address"}],"name":"changeUpdaterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"dictionary","outputs":[{"internalType":"uint16","name":"id","type":"uint16"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"getDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"instruments","outputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint128","name":"timeStamp","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"instrumentsCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"ids","type":"uint16[]"}],"name":"requestMultiplePricesUpdate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"id","type":"uint16"}],"name":"requestPriceUpdate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"timeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferProfit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updAdditionalPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updOnePriceGasCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"updSeveralPricesCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"updateInstrument","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"ids","type":"uint16[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"updateSeveralPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"id","type":"uint16"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"updateSinglePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updater","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a06040526040516116fc3803806116fc833981016040819052602091606e565b6001600160a01b03166080525f805462010000600160b01b0319163362010000810291909117909155600280546001600160a01b031990811683179091556001805490911690911790556099565b5f60208284031215607d575f80fd5b81516001600160a01b03811681146092575f80fd5b9392505050565b60805161164b6100b15f395f610eeb015261164b5ff3fe608060405260043610610178575f3560e01c80637a7a3206116100d1578063afd0fd1d1161007c578063bc8a86d511610057578063bc8a86d51461040f578063df034cd014610479578063ebe828df14610498575f80fd5b8063afd0fd1d14610399578063b3f05b97146103ca578063b5c105f3146103fa575f80fd5b8063ab16ef44116100ac578063ab16ef4414610342578063ab808dbe14610370578063ad7a978414610386575f80fd5b80637a7a3206146102e9578063a1e381ef146102ff578063a6c3e6b91461031e575f80fd5b80633ef439ff11610131578063506e4d9a1161010c578063506e4d9a1461027e578063524f3889146102ab57806364eff0d1146102ca575f80fd5b80633ef439ff1461022a57806345c9c1d1146102565780634bb278f31461026a575f80fd5b80631a83c469116101615780631a83c469146101b05780631ac5498a146101cf57806338af3eed146101ee575f80fd5b806312d0e65a1461017c578063132308b31461019d575b5f80fd5b348015610187575f80fd5b5061019b610196366004610fff565b6104b7565b005b61019b6101ab36600461111b565b61057e565b3480156101bb575f80fd5b5061019b6101ca366004610fff565b61063a565b3480156101da575f80fd5b5061019b6101e93660046111c1565b6106b6565b3480156101f9575f80fd5b5060015461020d906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b348015610235575f80fd5b505f546102439061ffff1681565b60405161ffff9091168152602001610221565b348015610261575f80fd5b5061019b6107cd565b348015610275575f80fd5b5061019b610839565b348015610289575f80fd5b5061029d61029836600461123e565b6108fc565b604051908152602001610221565b3480156102b6575f80fd5b5061029d6102c536600461123e565b61094e565b3480156102d5575f80fd5b5061019b6102e4366004611270565b61098b565b3480156102f4575f80fd5b5061029d62014bc081565b34801561030a575f80fd5b506102436103193660046111c1565b610a86565b348015610329575f80fd5b505f5461020d906201000090046001600160a01b031681565b34801561034d575f80fd5b5061036161035c36600461123e565b610c1f565b6040516102219392919061132e565b34801561037b575f80fd5b5061029d620156be81565b61019b610394366004611378565b610cdb565b3480156103a4575f80fd5b506103b86103b336600461123e565b610d77565b60405160ff9091168152602001610221565b3480156103d5575f80fd5b506002546103ea90600160a01b900460ff1681565b6040519015158152602001610221565b348015610405575f80fd5b5061029d6158ac81565b34801561041a575f80fd5b50610453610429366004611378565b60036020525f9081526040902080546001909101546fffffffffffffffffffffffffffffffff1682565b604080519283526fffffffffffffffffffffffffffffffff909116602083015201610221565b348015610484575f80fd5b5060025461020d906001600160a01b031681565b3480156104a3575f80fd5b5061019b6104b2366004611391565b610da4565b5f546201000090046001600160a01b031633146105095760405162461bcd60e51b815260206004820152600b60248201526a617574686f72206f6e6c7960a81b60448201526064015b60405180910390fd5b600254600160a01b900460ff161561054f5760405162461bcd60e51b8152602060048201526009602482015268199a5b985b1a5e995960ba1b6044820152606401610500565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3a620156be6158ac835161059291906113cd565b61059c91906113ea565b6105a79060026113cd565b6105b191906113cd565b3410156106005760405162461bcd60e51b815260206004820152600f60248201527f6e656564206d6f726520657468657200000000000000000000000000000000006044820152606401610500565b7f92e8536a39685bc7378a90e3c92685e764f6ef9816f1110c7c4f30d0c97d43fb8160405161062f91906113fd565b60405180910390a150565b5f546201000090046001600160a01b031633146106875760405162461bcd60e51b815260206004820152600b60248201526a617574686f72206f6e6c7960a81b6044820152606401610500565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6002546001600160a01b031633146106ff5760405162461bcd60e51b815260206004820152600c60248201526b75706461746572206f6e6c7960a01b6044820152606401610500565b5f6004846040516107109190611443565b9081526020016040518091039020905080600101805461072f90611459565b90505f036107a55760405162461bcd60e51b815260206004820152602760248201527f53796d626f6c20646f65736e27742065786973742c2075736520616464496e7360448201527f7472756d656e74000000000000000000000000000000000000000000000000006064820152608401610500565b600181016107b384826114dd565b50600201805460ff191660ff929092169190911790555050565b6001546040516001600160a01b03909116904780156108fc02915f818181858888f19350505050158015610803573d5f803e3d5ffd5b506040514781527f1241ee7de620e23a422383ea2edb030a4d229d4e462e064085c36e5066b4bee19060200160405180910390a1565b5f546201000090046001600160a01b031633146108865760405162461bcd60e51b815260206004820152600b60248201526a617574686f72206f6e6c7960a81b6044820152606401610500565b600254600160a01b900460ff16156108cc5760405162461bcd60e51b8152602060048201526009602482015268199a5b985b1a5e995960ba1b6044820152606401610500565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055565b5f60035f6004846040516109109190611443565b90815260408051602092819003830190205461ffff16835290820192909252015f20600101546fffffffffffffffffffffffffffffffff1692915050565b5f60035f6004846040516109629190611443565b90815260408051602092819003830190205461ffff16835290820192909252015f205492915050565b6002546001600160a01b031633146109d45760405162461bcd60e51b815260206004820152600c60248201526b75706461746572206f6e6c7960a01b6044820152606401610500565b815181518114610a265760405162461bcd60e51b815260206004820152600d60248201527f617272617973206c656e677468000000000000000000000000000000000000006044820152606401610500565b5f5b818161ffff161015610a8057610a78848261ffff1681518110610a4d57610a4d611598565b6020026020010151848361ffff1681518110610a6b57610a6b611598565b6020026020010151610dfb565b600101610a28565b50505050565b6002545f906001600160a01b03163314610ad15760405162461bcd60e51b815260206004820152600c60248201526b75706461746572206f6e6c7960a01b6044820152606401610500565b5f600485604051610ae29190611443565b90815260200160405180910390209050806001018054610b0190611459565b159050610b765760405162461bcd60e51b815260206004820152602a60248201527f73796d626f6c20616c72656164792065786973742c207573652075706461746560448201527f496e737472756d656e74000000000000000000000000000000000000000000006064820152608401610500565b5f80548190610b889061ffff166115ac565b825461ffff9182166101009390930a8381029202191617909155815461ffff191617815560018101610bba85826114dd565b5060028101805460ff851660ff19909116179055805461ffff9081165f90815260036020526040902060010180546fffffffffffffffffffffffffffffffff42166fffffffffffffffffffffffffffffffff1990911617905590541690509392505050565b80516020818301810180516004825292820191909301209152805460018201805461ffff9092169291610c5190611459565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7d90611459565b8015610cc85780601f10610c9f57610100808354040283529160200191610cc8565b820191905f5260205f20905b815481529060010190602001808311610cab57829003601f168201915b5050506002909301549192505060ff1683565b3a610cea62014bc060026113cd565b610cf491906113cd565b341015610d435760405162461bcd60e51b815260206004820152600f60248201527f6e656564206d6f726520657468657200000000000000000000000000000000006044820152606401610500565b60405161ffff821681527f01117e6b66ea540aaff99988c0d1a792003641983f3e71c26d8cd82372a8aa009060200161062f565b5f600482604051610d889190611443565b9081526040519081900360200190206002015460ff1692915050565b6002546001600160a01b03163314610ded5760405162461bcd60e51b815260206004820152600c60248201526b75706461746572206f6e6c7960a01b6044820152606401610500565b610df78282610dfb565b5050565b61ffff82165f9081526003602052604081206001810180546fffffffffffffffffffffffffffffffff1916426fffffffffffffffffffffffffffffffff1617905554908115610fb057828210610e5c57610e5583836115cc565b9050610e69565b610e6682846115cc565b90505b6040517f145f822b00000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f68696768566f6c6174696c6974794576656e744261727269657250657263656e60448201527f740000000000000000000000000000000000000000000000000000000000000060648201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063145f822b90608401602060405180830381865afa158015610f38573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f5c91906115df565b82610f688360646113cd565b610f7291906115f6565b1115610fb05760405161ffff851681527f412637e8aa46ce4827b3aafc26c8c83022c58ea58524995da6a578168e5731259060200160405180910390a15b61ffff84165f8181526003602090815260409182902086905590519182527fb224e441908b4f23387312014c3971437a09bf702e76a0dfe3907fb68d5d1489910160405180910390a150505050565b5f6020828403121561100f575f80fd5b81356001600160a01b0381168114611025575f80fd5b9392505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156110695761106961102c565b604052919050565b5f67ffffffffffffffff82111561108a5761108a61102c565b5060051b60200190565b803561ffff811681146110a5575f80fd5b919050565b5f82601f8301126110b9575f80fd5b81356110cc6110c782611071565b611040565b8082825260208201915060208360051b8601019250858311156110ed575f80fd5b602085015b838110156111115761110381611094565b8352602092830192016110f2565b5095945050505050565b5f6020828403121561112b575f80fd5b813567ffffffffffffffff811115611141575f80fd5b61114d848285016110aa565b949350505050565b5f82601f830112611164575f80fd5b813567ffffffffffffffff81111561117e5761117e61102c565b611191601f8201601f1916602001611040565b8181528460208386010111156111a5575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f606084860312156111d3575f80fd5b833567ffffffffffffffff8111156111e9575f80fd5b6111f586828701611155565b935050602084013567ffffffffffffffff811115611211575f80fd5b61121d86828701611155565b925050604084013560ff81168114611233575f80fd5b809150509250925092565b5f6020828403121561124e575f80fd5b813567ffffffffffffffff811115611264575f80fd5b61114d84828501611155565b5f8060408385031215611281575f80fd5b823567ffffffffffffffff811115611297575f80fd5b6112a3858286016110aa565b925050602083013567ffffffffffffffff8111156112bf575f80fd5b8301601f810185136112cf575f80fd5b80356112dd6110c782611071565b8082825260208201915060208360051b8501019250878311156112fe575f80fd5b6020840193505b82841015611320578335825260209384019390910190611305565b809450505050509250929050565b61ffff84168152606060208201525f83518060608401528060208601608085015e5f608082850101526080601f19601f83011684010191505060ff83166040830152949350505050565b5f60208284031215611388575f80fd5b61102582611094565b5f80604083850312156113a2575f80fd5b6113ab83611094565b946020939093013593505050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176113e4576113e46113b9565b92915050565b808201808211156113e4576113e46113b9565b602080825282518282018190525f918401906040840190835b8181101561143857835161ffff16835260209384019390920191600101611416565b509095945050505050565b5f82518060208501845e5f920191825250919050565b600181811c9082168061146d57607f821691505b60208210810361148b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156114d857805f5260205f20601f840160051c810160208510156114b65750805b601f840160051c820191505b818110156114d5575f81556001016114c2565b50505b505050565b815167ffffffffffffffff8111156114f7576114f761102c565b61150b816115058454611459565b84611491565b6020601f82116001811461153d575f83156115265750848201515b5f19600385901b1c1916600184901b1784556114d5565b5f84815260208120601f198516915b8281101561156c578785015182556020948501946001909201910161154c565b508482101561158957868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b5f61ffff821661ffff81036115c3576115c36113b9565b60010192915050565b818103818111156113e4576113e46113b9565b5f602082840312156115ef575f80fd5b5051919050565b5f8261161057634e487b7160e01b5f52601260045260245ffd5b50049056fea2646970667358221220d9aacb0cd936f9b7e916846df4a531bb9e7ad97f600af253b3aad26f93e52f3264736f6c634300081a003300000000000000000000000055ead3b40016b1d5417f5a20f2d1e53e2d1c9122
Deployed Bytecode
0x608060405260043610610178575f3560e01c80637a7a3206116100d1578063afd0fd1d1161007c578063bc8a86d511610057578063bc8a86d51461040f578063df034cd014610479578063ebe828df14610498575f80fd5b8063afd0fd1d14610399578063b3f05b97146103ca578063b5c105f3146103fa575f80fd5b8063ab16ef44116100ac578063ab16ef4414610342578063ab808dbe14610370578063ad7a978414610386575f80fd5b80637a7a3206146102e9578063a1e381ef146102ff578063a6c3e6b91461031e575f80fd5b80633ef439ff11610131578063506e4d9a1161010c578063506e4d9a1461027e578063524f3889146102ab57806364eff0d1146102ca575f80fd5b80633ef439ff1461022a57806345c9c1d1146102565780634bb278f31461026a575f80fd5b80631a83c469116101615780631a83c469146101b05780631ac5498a146101cf57806338af3eed146101ee575f80fd5b806312d0e65a1461017c578063132308b31461019d575b5f80fd5b348015610187575f80fd5b5061019b610196366004610fff565b6104b7565b005b61019b6101ab36600461111b565b61057e565b3480156101bb575f80fd5b5061019b6101ca366004610fff565b61063a565b3480156101da575f80fd5b5061019b6101e93660046111c1565b6106b6565b3480156101f9575f80fd5b5060015461020d906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b348015610235575f80fd5b505f546102439061ffff1681565b60405161ffff9091168152602001610221565b348015610261575f80fd5b5061019b6107cd565b348015610275575f80fd5b5061019b610839565b348015610289575f80fd5b5061029d61029836600461123e565b6108fc565b604051908152602001610221565b3480156102b6575f80fd5b5061029d6102c536600461123e565b61094e565b3480156102d5575f80fd5b5061019b6102e4366004611270565b61098b565b3480156102f4575f80fd5b5061029d62014bc081565b34801561030a575f80fd5b506102436103193660046111c1565b610a86565b348015610329575f80fd5b505f5461020d906201000090046001600160a01b031681565b34801561034d575f80fd5b5061036161035c36600461123e565b610c1f565b6040516102219392919061132e565b34801561037b575f80fd5b5061029d620156be81565b61019b610394366004611378565b610cdb565b3480156103a4575f80fd5b506103b86103b336600461123e565b610d77565b60405160ff9091168152602001610221565b3480156103d5575f80fd5b506002546103ea90600160a01b900460ff1681565b6040519015158152602001610221565b348015610405575f80fd5b5061029d6158ac81565b34801561041a575f80fd5b50610453610429366004611378565b60036020525f9081526040902080546001909101546fffffffffffffffffffffffffffffffff1682565b604080519283526fffffffffffffffffffffffffffffffff909116602083015201610221565b348015610484575f80fd5b5060025461020d906001600160a01b031681565b3480156104a3575f80fd5b5061019b6104b2366004611391565b610da4565b5f546201000090046001600160a01b031633146105095760405162461bcd60e51b815260206004820152600b60248201526a617574686f72206f6e6c7960a81b60448201526064015b60405180910390fd5b600254600160a01b900460ff161561054f5760405162461bcd60e51b8152602060048201526009602482015268199a5b985b1a5e995960ba1b6044820152606401610500565b6001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3a620156be6158ac835161059291906113cd565b61059c91906113ea565b6105a79060026113cd565b6105b191906113cd565b3410156106005760405162461bcd60e51b815260206004820152600f60248201527f6e656564206d6f726520657468657200000000000000000000000000000000006044820152606401610500565b7f92e8536a39685bc7378a90e3c92685e764f6ef9816f1110c7c4f30d0c97d43fb8160405161062f91906113fd565b60405180910390a150565b5f546201000090046001600160a01b031633146106875760405162461bcd60e51b815260206004820152600b60248201526a617574686f72206f6e6c7960a81b6044820152606401610500565b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6002546001600160a01b031633146106ff5760405162461bcd60e51b815260206004820152600c60248201526b75706461746572206f6e6c7960a01b6044820152606401610500565b5f6004846040516107109190611443565b9081526020016040518091039020905080600101805461072f90611459565b90505f036107a55760405162461bcd60e51b815260206004820152602760248201527f53796d626f6c20646f65736e27742065786973742c2075736520616464496e7360448201527f7472756d656e74000000000000000000000000000000000000000000000000006064820152608401610500565b600181016107b384826114dd565b50600201805460ff191660ff929092169190911790555050565b6001546040516001600160a01b03909116904780156108fc02915f818181858888f19350505050158015610803573d5f803e3d5ffd5b506040514781527f1241ee7de620e23a422383ea2edb030a4d229d4e462e064085c36e5066b4bee19060200160405180910390a1565b5f546201000090046001600160a01b031633146108865760405162461bcd60e51b815260206004820152600b60248201526a617574686f72206f6e6c7960a81b6044820152606401610500565b600254600160a01b900460ff16156108cc5760405162461bcd60e51b8152602060048201526009602482015268199a5b985b1a5e995960ba1b6044820152606401610500565b600280547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055565b5f60035f6004846040516109109190611443565b90815260408051602092819003830190205461ffff16835290820192909252015f20600101546fffffffffffffffffffffffffffffffff1692915050565b5f60035f6004846040516109629190611443565b90815260408051602092819003830190205461ffff16835290820192909252015f205492915050565b6002546001600160a01b031633146109d45760405162461bcd60e51b815260206004820152600c60248201526b75706461746572206f6e6c7960a01b6044820152606401610500565b815181518114610a265760405162461bcd60e51b815260206004820152600d60248201527f617272617973206c656e677468000000000000000000000000000000000000006044820152606401610500565b5f5b818161ffff161015610a8057610a78848261ffff1681518110610a4d57610a4d611598565b6020026020010151848361ffff1681518110610a6b57610a6b611598565b6020026020010151610dfb565b600101610a28565b50505050565b6002545f906001600160a01b03163314610ad15760405162461bcd60e51b815260206004820152600c60248201526b75706461746572206f6e6c7960a01b6044820152606401610500565b5f600485604051610ae29190611443565b90815260200160405180910390209050806001018054610b0190611459565b159050610b765760405162461bcd60e51b815260206004820152602a60248201527f73796d626f6c20616c72656164792065786973742c207573652075706461746560448201527f496e737472756d656e74000000000000000000000000000000000000000000006064820152608401610500565b5f80548190610b889061ffff166115ac565b825461ffff9182166101009390930a8381029202191617909155815461ffff191617815560018101610bba85826114dd565b5060028101805460ff851660ff19909116179055805461ffff9081165f90815260036020526040902060010180546fffffffffffffffffffffffffffffffff42166fffffffffffffffffffffffffffffffff1990911617905590541690509392505050565b80516020818301810180516004825292820191909301209152805460018201805461ffff9092169291610c5190611459565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7d90611459565b8015610cc85780601f10610c9f57610100808354040283529160200191610cc8565b820191905f5260205f20905b815481529060010190602001808311610cab57829003601f168201915b5050506002909301549192505060ff1683565b3a610cea62014bc060026113cd565b610cf491906113cd565b341015610d435760405162461bcd60e51b815260206004820152600f60248201527f6e656564206d6f726520657468657200000000000000000000000000000000006044820152606401610500565b60405161ffff821681527f01117e6b66ea540aaff99988c0d1a792003641983f3e71c26d8cd82372a8aa009060200161062f565b5f600482604051610d889190611443565b9081526040519081900360200190206002015460ff1692915050565b6002546001600160a01b03163314610ded5760405162461bcd60e51b815260206004820152600c60248201526b75706461746572206f6e6c7960a01b6044820152606401610500565b610df78282610dfb565b5050565b61ffff82165f9081526003602052604081206001810180546fffffffffffffffffffffffffffffffff1916426fffffffffffffffffffffffffffffffff1617905554908115610fb057828210610e5c57610e5583836115cc565b9050610e69565b610e6682846115cc565b90505b6040517f145f822b00000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f68696768566f6c6174696c6974794576656e744261727269657250657263656e60448201527f740000000000000000000000000000000000000000000000000000000000000060648201527f00000000000000000000000055ead3b40016b1d5417f5a20f2d1e53e2d1c91226001600160a01b03169063145f822b90608401602060405180830381865afa158015610f38573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f5c91906115df565b82610f688360646113cd565b610f7291906115f6565b1115610fb05760405161ffff851681527f412637e8aa46ce4827b3aafc26c8c83022c58ea58524995da6a578168e5731259060200160405180910390a15b61ffff84165f8181526003602090815260409182902086905590519182527fb224e441908b4f23387312014c3971437a09bf702e76a0dfe3907fb68d5d1489910160405180910390a150505050565b5f6020828403121561100f575f80fd5b81356001600160a01b0381168114611025575f80fd5b9392505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156110695761106961102c565b604052919050565b5f67ffffffffffffffff82111561108a5761108a61102c565b5060051b60200190565b803561ffff811681146110a5575f80fd5b919050565b5f82601f8301126110b9575f80fd5b81356110cc6110c782611071565b611040565b8082825260208201915060208360051b8601019250858311156110ed575f80fd5b602085015b838110156111115761110381611094565b8352602092830192016110f2565b5095945050505050565b5f6020828403121561112b575f80fd5b813567ffffffffffffffff811115611141575f80fd5b61114d848285016110aa565b949350505050565b5f82601f830112611164575f80fd5b813567ffffffffffffffff81111561117e5761117e61102c565b611191601f8201601f1916602001611040565b8181528460208386010111156111a5575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f606084860312156111d3575f80fd5b833567ffffffffffffffff8111156111e9575f80fd5b6111f586828701611155565b935050602084013567ffffffffffffffff811115611211575f80fd5b61121d86828701611155565b925050604084013560ff81168114611233575f80fd5b809150509250925092565b5f6020828403121561124e575f80fd5b813567ffffffffffffffff811115611264575f80fd5b61114d84828501611155565b5f8060408385031215611281575f80fd5b823567ffffffffffffffff811115611297575f80fd5b6112a3858286016110aa565b925050602083013567ffffffffffffffff8111156112bf575f80fd5b8301601f810185136112cf575f80fd5b80356112dd6110c782611071565b8082825260208201915060208360051b8501019250878311156112fe575f80fd5b6020840193505b82841015611320578335825260209384019390910190611305565b809450505050509250929050565b61ffff84168152606060208201525f83518060608401528060208601608085015e5f608082850101526080601f19601f83011684010191505060ff83166040830152949350505050565b5f60208284031215611388575f80fd5b61102582611094565b5f80604083850312156113a2575f80fd5b6113ab83611094565b946020939093013593505050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176113e4576113e46113b9565b92915050565b808201808211156113e4576113e46113b9565b602080825282518282018190525f918401906040840190835b8181101561143857835161ffff16835260209384019390920191600101611416565b509095945050505050565b5f82518060208501845e5f920191825250919050565b600181811c9082168061146d57607f821691505b60208210810361148b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156114d857805f5260205f20601f840160051c810160208510156114b65750805b601f840160051c820191505b818110156114d5575f81556001016114c2565b50505b505050565b815167ffffffffffffffff8111156114f7576114f761102c565b61150b816115058454611459565b84611491565b6020601f82116001811461153d575f83156115265750848201515b5f19600385901b1c1916600184901b1784556114d5565b5f84815260208120601f198516915b8281101561156c578785015182556020948501946001909201910161154c565b508482101561158957868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b5f61ffff821661ffff81036115c3576115c36113b9565b60010192915050565b818103818111156113e4576113e46113b9565b5f602082840312156115ef575f80fd5b5051919050565b5f8261161057634e487b7160e01b5f52601260045260245ffd5b50049056fea2646970667358221220d9aacb0cd936f9b7e916846df4a531bb9e7ad97f600af253b3aad26f93e52f3264736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000055ead3b40016b1d5417f5a20f2d1e53e2d1c9122
-----Decoded View---------------
Arg [0] : _INTDAOaddress (address): 0x55Ead3b40016b1d5417F5A20F2d1E53e2d1c9122
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000055ead3b40016b1d5417f5a20f2d1e53e2d1c9122
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 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.