Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- DistributionVault
- Optimization enabled
- true
- Compiler version
- v0.8.24+commit.e11b9ed9
- Optimization runs
- 200
- EVM Version
- shanghai
- Verified at
- 2026-04-13T12:40:45.862863Z
Constructor Arguments
000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc8000000000000000000000000f71b15d9610ccee7cd291a2a6616b1188dfbed57
Arg [0] (address) : 0xc3603a8395304a117e8ee784eccbff0063940cc8
Arg [1] (address) : 0xf71b15d9610ccee7cd291a2a6616b1188dfbed57
project/contracts/DistributionVault.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
/**
* @title DistributionVault
* @notice Holds DaiX tokens and distributes them to users at milestone claims.
*
* ARCHITECTURE:
* ┌──────────────────────────────────────────────────────────────────┐
* │ FUNDING (owner → vault): │
* │ 1. Owner calls fund(amount) — transfers DaiX into vault │
* │ 2. OR: Owner sends DaiX via standard ERC-20 transfer() │
* │ 3. getDistributableBalance() returns available for distros │
* │ │
* │ DISTRIBUTION (vault → users, backend-triggered): │
* │ 1. User claims via POST /api/distributions/claim │
* │ 2. Backend calls distribute(recipient, amount) via signer │
* │ 3. DaiX transferred from vault to user's PulseChain wallet │
* │ │
* │ FREEZE PROTECTION: │
* │ - pause(): halts all distributions instantly (owner only) │
* │ - proposeEmergencyWithdraw(): starts 7-day timelock │
* │ - executeEmergencyWithdraw(): after 7 days, recovers tokens │
* │ - cancelEmergencyWithdraw(): cancels if resolved │
* │ - Tokens can NEVER be permanently frozen │
* └──────────────────────────────────────────────────────────────────┘
*
* ROLES:
* owner — Can fund, pause, set signer, propose emergency withdraw
* signer — Can call distribute() (hot wallet, backend-controlled)
* owner2Step — Ownership transfer requires new owner to accept
*
* INVARIANT: totalDistributed <= totalFunded (enforced on-chain)
*
* AUDIT: Independently audited April 2026. All critical/high findings resolved.
* Audit report: https://provedaix.com/audit
*/
contract DistributionVault is Ownable2Step, ReentrancyGuard, Pausable {
using SafeERC20 for IERC20;
// ── State ──
IERC20 public immutable daixToken;
address public signer;
uint256 public totalFunded;
uint256 public totalDistributed;
uint256 public totalDistributions;
// ── Per-tx safety limit ──
uint256 public maxDistributionPerTx = 1_000_000 * 1e18; // 1M DaiX per claim
// ── Rolling 24h distribution limit ──
uint256 public dailyDistributionTotal;
uint256 public maxDailyDistribution = 10_000_000 * 1e18; // 10M DaiX/day
uint256 public rollingWindowStart;
uint256 public constant ROLLING_WINDOW = 24 hours;
// ── Dedup ──
mapping(bytes32 => bool) public processedClaims;
// ── Signer change timelock (FIX DV-1: 7 days) ──
address public pendingSigner;
uint256 public signerChangeTimestamp;
uint256 public constant SIGNER_TIMELOCK = 7 days;
bool public signerChangeProposed;
// ── Emergency withdraw timelock ──
address public emergencyWithdrawTo;
uint256 public emergencyWithdrawTimestamp;
uint256 public constant EMERGENCY_TIMELOCK = 7 days;
bool public emergencyProposed;
// ── Reconcile cap (prevents inflation via direct token transfers) ──
uint256 public maxReconcileAmount = 10_000_000 * 1e18;
// ── FIX DV-3: Prevent funding/distributing after emergency withdraw ──
bool public emergencyWithdrawn;
// ── FIX DV-2: Claim expiry ──
uint256 public claimExpiryDuration = 90 days;
// ── Events ──
event Funded(address indexed funder, uint256 amount, uint256 newTotalFunded);
event Distributed(
address indexed recipient,
uint256 amount,
bytes32 indexed claimId,
uint256 timestamp
);
event SignerChangeProposed(address indexed newSigner, uint256 executeAfter);
event SignerChangeExecuted(address indexed oldSigner, address indexed newSigner);
event SignerChangeCancelled();
event MaxDistributionUpdated(uint256 perTx, uint256 daily);
event EmergencyWithdrawProposed(address indexed to, uint256 executeAfter);
event EmergencyWithdrawExecuted(address indexed to, uint256 amount);
event EmergencyWithdrawCancelled();
event MerkleRootCommitted(uint256 indexed epoch, bytes32 root, uint256 timestamp);
// ── Merkle Root Commitment (FIX XC-1) ──
mapping(uint256 => bytes32) public distributionMerkleRoots;
uint256 public latestMerkleEpoch;
// ── Modifiers ──
modifier onlySigner() {
require(msg.sender == signer, "Only signer can distribute");
_;
}
// ── Constructor ──
constructor(address _daixToken, address _signer) Ownable(msg.sender) {
require(_daixToken != address(0), "Invalid DaiX token address");
require(_signer != address(0), "Invalid signer address");
daixToken = IERC20(_daixToken);
signer = _signer;
rollingWindowStart = block.timestamp;
}
// ══════════════════════════════════════════════
// FUNDING
// ══════════════════════════════════════════════
/**
* @notice Deposit DaiX tokens into the vault for future distribution.
* @dev Requires prior ERC-20 approval: daixToken.approve(vault, amount).
*/
function fund(uint256 amount) external nonReentrant {
require(!emergencyWithdrawn, "Vault permanently closed after emergency withdraw");
require(amount > 0, "Amount must be > 0");
daixToken.safeTransferFrom(msg.sender, address(this), amount);
totalFunded += amount;
emit Funded(msg.sender, amount, totalFunded);
}
/**
* @notice How many DaiX tokens are available for distribution right now.
*/
function getDistributableBalance() external view returns (uint256) {
uint256 accounting = totalFunded - totalDistributed;
uint256 actual = daixToken.balanceOf(address(this));
return accounting < actual ? accounting : actual;
}
// ══════════════════════════════════════════════
// DISTRIBUTION
// ══════════════════════════════════════════════
/**
* @notice Distribute DaiX to a user for a specific claim.
* @param recipient User's PulseChain wallet address
* @param amount DaiX amount in wei (18 decimals)
* @param claimId Unique claim identifier (prevents double-distribution)
* @param claimTimestamp When the claim was originally created (FIX DV-2: expiry check)
*/
function distribute(
address recipient,
uint256 amount,
bytes32 claimId,
uint256 claimTimestamp
) external onlySigner nonReentrant whenNotPaused {
require(!emergencyWithdrawn, "Vault permanently closed after emergency withdraw");
require(recipient != address(0), "Invalid recipient");
require(amount > 0, "Amount must be > 0");
require(!processedClaims[claimId], "Claim already processed");
// FIX DV-2: Reject stale claims
require(claimTimestamp > 0, "Invalid claim timestamp");
require(block.timestamp - claimTimestamp <= claimExpiryDuration, "Claim expired");
// Per-tx safety limit
require(amount <= maxDistributionPerTx, "Exceeds per-tx distribution limit");
// Rolling 24h circuit breaker
if (block.timestamp >= rollingWindowStart + ROLLING_WINDOW) {
dailyDistributionTotal = 0;
rollingWindowStart = block.timestamp;
}
require(
dailyDistributionTotal + amount <= maxDailyDistribution,
"24h distribution limit reached - try again later"
);
// Accounting check
require(totalDistributed + amount <= totalFunded, "Insufficient vault balance (accounting)");
require(daixToken.balanceOf(address(this)) >= amount, "Insufficient vault balance (actual)");
// CEI pattern — mark processed BEFORE transfer
processedClaims[claimId] = true;
totalDistributed += amount;
dailyDistributionTotal += amount;
totalDistributions++;
daixToken.safeTransfer(recipient, amount);
emit Distributed(recipient, amount, claimId, block.timestamp);
}
// ══════════════════════════════════════════════
// ADMIN — Configuration
// ══════════════════════════════════════════════
/// @notice Propose signer change (7-day timelock — FIX DV-1)
function proposeSigner(address _signer) external onlyOwner {
require(_signer != address(0), "Invalid signer");
pendingSigner = _signer;
signerChangeTimestamp = block.timestamp + SIGNER_TIMELOCK;
signerChangeProposed = true;
emit SignerChangeProposed(_signer, signerChangeTimestamp);
}
function executeSigner() external onlyOwner {
require(signerChangeProposed, "No signer change proposed");
require(block.timestamp >= signerChangeTimestamp, "Signer timelock not expired");
address oldSigner = signer;
signer = pendingSigner;
signerChangeProposed = false;
pendingSigner = address(0);
signerChangeTimestamp = 0;
emit SignerChangeExecuted(oldSigner, signer);
}
function cancelSigner() external onlyOwner {
require(signerChangeProposed, "No signer change to cancel");
signerChangeProposed = false;
pendingSigner = address(0);
signerChangeTimestamp = 0;
emit SignerChangeCancelled();
}
function setDistributionLimits(uint256 _perTx, uint256 _daily) external onlyOwner {
require(_perTx > 0 && _daily > 0 && _daily >= _perTx, "Invalid limits");
maxDistributionPerTx = _perTx;
maxDailyDistribution = _daily;
emit MaxDistributionUpdated(_perTx, _daily);
}
function pause() external onlyOwner { _pause(); }
/// @notice Resume distributions — FIX DV-4: resets rolling window on unpause
function unpause() external onlyOwner {
dailyDistributionTotal = 0;
rollingWindowStart = block.timestamp;
_unpause();
}
/// @notice FIX DV-2: Update claim expiry duration
function setClaimExpiryDuration(uint256 _duration) external onlyOwner {
require(_duration >= 7 days, "Minimum 7 days");
require(_duration <= 365 days, "Maximum 1 year");
claimExpiryDuration = _duration;
}
// ══════════════════════════════════════════════
// EMERGENCY WITHDRAW — 7-day timelocked recovery
// ══════════════════════════════════════════════
function proposeEmergencyWithdraw(address to) external onlyOwner {
require(to != address(0), "Invalid destination");
emergencyWithdrawTo = to;
emergencyWithdrawTimestamp = block.timestamp + EMERGENCY_TIMELOCK;
emergencyProposed = true;
emit EmergencyWithdrawProposed(to, emergencyWithdrawTimestamp);
}
/// @notice FIX DV-3: Sets emergencyWithdrawn — vault permanently closed after this
function executeEmergencyWithdraw() external onlyOwner nonReentrant {
require(emergencyProposed, "No emergency withdrawal proposed");
require(block.timestamp >= emergencyWithdrawTimestamp, "Timelock not expired");
uint256 balance = daixToken.balanceOf(address(this));
require(balance > 0, "No tokens to withdraw");
address to = emergencyWithdrawTo;
emergencyProposed = false;
emergencyWithdrawTo = address(0);
emergencyWithdrawTimestamp = 0;
emergencyWithdrawn = true;
daixToken.safeTransfer(to, balance);
emit EmergencyWithdrawExecuted(to, balance);
}
function cancelEmergencyWithdraw() external onlyOwner {
require(emergencyProposed, "No emergency withdrawal to cancel");
emergencyProposed = false;
emergencyWithdrawTo = address(0);
emergencyWithdrawTimestamp = 0;
emit EmergencyWithdrawCancelled();
}
// ══════════════════════════════════════════════
// VIEW HELPERS
// ══════════════════════════════════════════════
function isClaimProcessed(bytes32 claimId) external view returns (bool) {
return processedClaims[claimId];
}
function getVaultStats() external view returns (
uint256 _totalFunded,
uint256 _totalDistributed,
uint256 _distributableBalance,
uint256 _totalDistributions,
uint256 _dailyDistributionTotal,
bool _paused,
bool _emergencyProposed,
bool _signerChangeProposed
) {
uint256 accounting = totalFunded - totalDistributed;
uint256 actual = daixToken.balanceOf(address(this));
return (
totalFunded,
totalDistributed,
accounting < actual ? accounting : actual,
totalDistributions,
dailyDistributionTotal,
paused(),
emergencyProposed,
signerChangeProposed
);
}
/// @notice Reconcile accounting for tokens sent via direct transfer()
function reconcileBalance() external onlyOwner {
uint256 actual = daixToken.balanceOf(address(this));
uint256 expectedUnused = totalFunded - totalDistributed;
if (actual > expectedUnused) {
uint256 extra = actual - expectedUnused;
require(extra <= maxReconcileAmount, "Reconcile exceeds cap - use fund() for large deposits");
totalFunded += extra;
emit Funded(address(0), extra, totalFunded);
}
}
function setMaxReconcileAmount(uint256 _maxReconcile) external onlyOwner {
require(_maxReconcile > 0, "Must be > 0");
maxReconcileAmount = _maxReconcile;
}
// ══════════════════════════════════════════════
// FIX XC-1: MERKLE ROOT COMMITMENT
// ══════════════════════════════════════════════
/// @notice Commit a Merkle root of sacrifice-to-distribution mappings
function commitMerkleRoot(uint256 epoch, bytes32 root) external onlyOwner {
require(epoch > latestMerkleEpoch, "Epoch must be newer than latest");
require(root != bytes32(0), "Root cannot be zero");
distributionMerkleRoots[epoch] = root;
latestMerkleEpoch = epoch;
emit MerkleRootCommitted(epoch, root, block.timestamp);
}
/// @notice Verify a user's distribution against a committed Merkle root
function verifyDistribution(
uint256 epoch,
bytes32 leaf,
bytes32[] calldata proof
) external view returns (bool) {
bytes32 root = distributionMerkleRoots[epoch];
require(root != bytes32(0), "No root committed for this epoch");
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
} else {
computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
}
}
return computedHash == root;
}
}
/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
/StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.20;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC-1967 implementation slot:
* ```solidity
* contract ERC1967 {
* // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* TIP: Consider using this library along with {SlotDerivation}.
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct Int256Slot {
int256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `Int256Slot` with member `value` located at `slot`.
*/
function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns a `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
assembly ("memory-safe") {
r.slot := store.slot
}
}
/**
* @dev Returns a `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
assembly ("memory-safe") {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
assembly ("memory-safe") {
r.slot := store.slot
}
}
}
/ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
import {StorageSlot} from "./StorageSlot.sol";
/**
* @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* 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].
*
* IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced
* by the {ReentrancyGuardTransient} variant in v6.0.
*
* @custom:stateless
*/
abstract contract ReentrancyGuard {
using StorageSlot for bytes32;
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ReentrancyGuard")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant REENTRANCY_GUARD_STORAGE =
0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;
// 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;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_reentrancyGuardStorageSlot().getUint256Slot().value = 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();
}
/**
* @dev A `view` only version of {nonReentrant}. Use to block view functions
* from being called, preventing reading from inconsistent contract state.
*
* CAUTION: This is a "view" modifier and does not change the reentrancy
* status. Use it only on view functions. For payable or non-payable functions,
* use the standard {nonReentrant} modifier instead.
*/
modifier nonReentrantView() {
_nonReentrantBeforeView();
_;
}
function _nonReentrantBeforeView() private view {
if (_reentrancyGuardEntered()) {
revert ReentrancyGuardReentrantCall();
}
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
_nonReentrantBeforeView();
// Any calls to nonReentrant after this point will fail
_reentrancyGuardStorageSlot().getUint256Slot().value = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_reentrancyGuardStorageSlot().getUint256Slot().value = 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 _reentrancyGuardStorageSlot().getUint256Slot().value == ENTERED;
}
function _reentrancyGuardStorageSlot() internal pure virtual returns (bytes32) {
return REENTRANCY_GUARD_STORAGE;
}
}
/Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (utils/Pausable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
bool private _paused;
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
/**
* @dev The operation failed because the contract is paused.
*/
error EnforcedPause();
/**
* @dev The operation failed because the contract is not paused.
*/
error ExpectedPause();
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
if (paused()) {
revert EnforcedPause();
}
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
if (!paused()) {
revert ExpectedPause();
}
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}
/Context.sol
// 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;
}
}
/ERC20/utils/SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
if (!_safeTransfer(token, to, value, true)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
if (!_safeTransferFrom(token, from, to, value, true)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _safeTransfer(token, to, value, false);
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _safeTransferFrom(token, from, to, value, false);
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
if (!_safeApprove(token, spender, value, false)) {
if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));
if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the
* return value is optional (but if data is returned, it must not be false).
*
* @param token The token targeted by the call.
* @param to The recipient of the tokens
* @param value The amount of token to transfer
* @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
*/
function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {
bytes4 selector = IERC20.transfer.selector;
assembly ("memory-safe") {
let fmp := mload(0x40)
mstore(0x00, selector)
mstore(0x04, and(to, shr(96, not(0))))
mstore(0x24, value)
success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
// if call success and return is true, all is good.
// otherwise (not success or return is not true), we need to perform further checks
if iszero(and(success, eq(mload(0x00), 1))) {
// if the call was a failure and bubble is enabled, bubble the error
if and(iszero(success), bubble) {
returndatacopy(fmp, 0x00, returndatasize())
revert(fmp, returndatasize())
}
// if the return value is not true, then the call is only successful if:
// - the token address has code
// - the returndata is empty
success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
}
mstore(0x40, fmp)
}
}
/**
* @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return
* value: the return value is optional (but if data is returned, it must not be false).
*
* @param token The token targeted by the call.
* @param from The sender of the tokens
* @param to The recipient of the tokens
* @param value The amount of token to transfer
* @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
*/
function _safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value,
bool bubble
) private returns (bool success) {
bytes4 selector = IERC20.transferFrom.selector;
assembly ("memory-safe") {
let fmp := mload(0x40)
mstore(0x00, selector)
mstore(0x04, and(from, shr(96, not(0))))
mstore(0x24, and(to, shr(96, not(0))))
mstore(0x44, value)
success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)
// if call success and return is true, all is good.
// otherwise (not success or return is not true), we need to perform further checks
if iszero(and(success, eq(mload(0x00), 1))) {
// if the call was a failure and bubble is enabled, bubble the error
if and(iszero(success), bubble) {
returndatacopy(fmp, 0x00, returndatasize())
revert(fmp, returndatasize())
}
// if the return value is not true, then the call is only successful if:
// - the token address has code
// - the returndata is empty
success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
}
mstore(0x40, fmp)
mstore(0x60, 0)
}
}
/**
* @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:
* the return value is optional (but if data is returned, it must not be false).
*
* @param token The token targeted by the call.
* @param spender The spender of the tokens
* @param value The amount of token to transfer
* @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
*/
function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {
bytes4 selector = IERC20.approve.selector;
assembly ("memory-safe") {
let fmp := mload(0x40)
mstore(0x00, selector)
mstore(0x04, and(spender, shr(96, not(0))))
mstore(0x24, value)
success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
// if call success and return is true, all is good.
// otherwise (not success or return is not true), we need to perform further checks
if iszero(and(success, eq(mload(0x00), 1))) {
// if the call was a failure and bubble is enabled, bubble the error
if and(iszero(success), bubble) {
returndatacopy(fmp, 0x00, returndatasize())
revert(fmp, returndatasize())
}
// if the return value is not true, then the call is only successful if:
// - the token address has code
// - the returndata is empty
success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
}
mstore(0x40, fmp)
}
}
}
/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}
/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)
pragma solidity >=0.4.16;
import {IERC20} from "../token/ERC20/IERC20.sol";
/IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)
pragma solidity >=0.4.16;
import {IERC165} from "../utils/introspection/IERC165.sol";
/IERC1363.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)
pragma solidity >=0.6.2;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}
/Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.20;
import {Ownable} from "./Ownable.sol";
/**
* @dev Contract module which provides access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This extension of the {Ownable} contract includes a two-step mechanism to transfer
* ownership, where the new owner must call {acceptOwnership} in order to replace the
* old one. This can help prevent common mistakes, such as transfers of ownership to
* incorrect accounts, or to contracts that are unable to interact with the
* permission system.
*
* The initial owner is specified at deployment time in the constructor for `Ownable`. This
* can later be changed with {transferOwnership} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*
* Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
if (pendingOwner() != sender) {
revert OwnableUnauthorizedAccount(sender);
}
_transferOwnership(sender);
}
}
/Ownable.sol
// 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);
}
}
Compiler Settings
{"remappings":["project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.6.1/"],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"shanghai","compilationTarget":{"project/contracts/DistributionVault.sol":"DistributionVault"}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_daixToken","internalType":"address"},{"type":"address","name":"_signer","internalType":"address"}]},{"type":"error","name":"EnforcedPause","inputs":[]},{"type":"error","name":"ExpectedPause","inputs":[]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"event","name":"Distributed","inputs":[{"type":"address","name":"recipient","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"bytes32","name":"claimId","internalType":"bytes32","indexed":true},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdrawCancelled","inputs":[],"anonymous":false},{"type":"event","name":"EmergencyWithdrawExecuted","inputs":[{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdrawProposed","inputs":[{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"executeAfter","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Funded","inputs":[{"type":"address","name":"funder","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"newTotalFunded","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MaxDistributionUpdated","inputs":[{"type":"uint256","name":"perTx","internalType":"uint256","indexed":false},{"type":"uint256","name":"daily","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MerkleRootCommitted","inputs":[{"type":"uint256","name":"epoch","internalType":"uint256","indexed":true},{"type":"bytes32","name":"root","internalType":"bytes32","indexed":false},{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferStarted","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"SignerChangeCancelled","inputs":[],"anonymous":false},{"type":"event","name":"SignerChangeExecuted","inputs":[{"type":"address","name":"oldSigner","internalType":"address","indexed":true},{"type":"address","name":"newSigner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SignerChangeProposed","inputs":[{"type":"address","name":"newSigner","internalType":"address","indexed":true},{"type":"uint256","name":"executeAfter","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"EMERGENCY_TIMELOCK","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"ROLLING_WINDOW","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"SIGNER_TIMELOCK","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"acceptOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cancelEmergencyWithdraw","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cancelSigner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"claimExpiryDuration","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"commitMerkleRoot","inputs":[{"type":"uint256","name":"epoch","internalType":"uint256"},{"type":"bytes32","name":"root","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"dailyDistributionTotal","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"daixToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"distribute","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"bytes32","name":"claimId","internalType":"bytes32"},{"type":"uint256","name":"claimTimestamp","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"distributionMerkleRoots","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"emergencyProposed","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"emergencyWithdrawTimestamp","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"emergencyWithdrawTo","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"emergencyWithdrawn","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"executeEmergencyWithdraw","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"executeSigner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"fund","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getDistributableBalance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"_totalFunded","internalType":"uint256"},{"type":"uint256","name":"_totalDistributed","internalType":"uint256"},{"type":"uint256","name":"_distributableBalance","internalType":"uint256"},{"type":"uint256","name":"_totalDistributions","internalType":"uint256"},{"type":"uint256","name":"_dailyDistributionTotal","internalType":"uint256"},{"type":"bool","name":"_paused","internalType":"bool"},{"type":"bool","name":"_emergencyProposed","internalType":"bool"},{"type":"bool","name":"_signerChangeProposed","internalType":"bool"}],"name":"getVaultStats","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isClaimProcessed","inputs":[{"type":"bytes32","name":"claimId","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"latestMerkleEpoch","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxDailyDistribution","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxDistributionPerTx","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxReconcileAmount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pendingOwner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pendingSigner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"processedClaims","inputs":[{"type":"bytes32","name":"","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"proposeEmergencyWithdraw","inputs":[{"type":"address","name":"to","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"proposeSigner","inputs":[{"type":"address","name":"_signer","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"reconcileBalance","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"rollingWindowStart","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setClaimExpiryDuration","inputs":[{"type":"uint256","name":"_duration","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDistributionLimits","inputs":[{"type":"uint256","name":"_perTx","internalType":"uint256"},{"type":"uint256","name":"_daily","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxReconcileAmount","inputs":[{"type":"uint256","name":"_maxReconcile","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"signer","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"signerChangeProposed","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"signerChangeTimestamp","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalDistributed","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalDistributions","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalFunded","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"verifyDistribution","inputs":[{"type":"uint256","name":"epoch","internalType":"uint256"},{"type":"bytes32","name":"leaf","internalType":"bytes32"},{"type":"bytes32[]","name":"proof","internalType":"bytes32[]"}]}]
Contract Creation Code
0x60a060405269d3c21bcecceda10000006006556a084595161401484a0000006008556a084595161401484a0000006010556276a70060125534801562000043575f80fd5b506040516200224f3803806200224f833981016040819052620000669162000223565b33806200008d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b62000098816200019a565b5060017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00556001600160a01b038216620001155760405162461bcd60e51b815260206004820152601a60248201527f496e76616c6964204461695820746f6b656e2061646472657373000000000000604482015260640162000084565b6001600160a01b0381166200016d5760405162461bcd60e51b815260206004820152601660248201527f496e76616c6964207369676e6572206164647265737300000000000000000000604482015260640162000084565b6001600160a01b03918216608052600280546001600160a01b031916919092161790554260095562000259565b600180546001600160a01b0319169055620001b581620001b8565b50565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200021e575f80fd5b919050565b5f806040838503121562000235575f80fd5b620002408362000207565b9150620002506020840162000207565b90509250929050565b608051611fa5620002aa5f395f81816105c90152818161070901528181610ad401528181610bd601528181611031015281816111650152818161155801528181611614015261182c0152611fa55ff3fe608060405234801561000f575f80fd5b50600436106102b1575f3560e01c8063683131c91161017b578063a59aa5a6116100e4578063e28701ee1161009e578063efca2eed11610079578063efca2eed1461059f578063f2fde38b146105a8578063f4dfacd1146105bb578063fcb34c4b146105c4575f80fd5b8063e28701ee14610579578063e30c397814610586578063ebabcf9614610597575f80fd5b8063a59aa5a6146104d2578063ac6653c51461051b578063ad044f491461052e578063b5349ce214610537578063bcacccbc14610544578063ca1d209d14610566575f80fd5b80638131c1f3116101355780638131c1f3146104975780638456cb59146104a05780638da5cb5b146104a857806394a7fcdf146104b857806397763778146104c15780639f84fe0f146104c9575f80fd5b8063683131c9146104475780636f8000961461044f578063715018a614610458578063765535cb1461046057806379ba50971461046d5780637d548c6414610475575f80fd5b80632bf4b5cc1161021d5780634dff5766116101d75780634dff5766146104065780635abc657d146104195780635b0a8fad146104225780635c975abb1461042c57806360d7442b1461039057806361cd8b291461043e575f80fd5b80632bf4b5cc1461039a57806333118862146103ad5780633be97618146103c05780633f4ba83a146103d35780633f8a2b2c146103db57806349b26c82146103ee575f80fd5b806323383e8a1161026e57806323383e8a1461032a578063238ac93314610333578063244c1e8314610346578063289a88ff146103695780632a8821cc146103885780632b9e8a2514610390575f80fd5b8063032cb088146102b557806304d04de9146102ca5780630b2ec672146102e657806314d90c45146102ee578063163db71b1461031957806321152eb014610322575b5f80fd5b6102c86102c3366004611d57565b6105eb565b005b6102d360075481565b6040519081526020015b60405180910390f35b6102c86106ea565b600b54610301906001600160a01b031681565b6040516001600160a01b0390911681526020016102dd565b6102d360055481565b6102c8610874565b6102d3600e5481565b600254610301906001600160a01b031681565b610359610354366004611d77565b610917565b60405190151581526020016102dd565b6102d3610377366004611df3565b60136020525f908152604090205481565b6102c8610a12565b6102d362093a8081565b6102c86103a8366004611df3565b610c5a565b6102c86103bb366004611e25565b610ca4565b6102c86103ce366004611df3565b6111ed565b6102c8611283565b6102c86103e9366004611e5b565b61129b565b600d546103019061010090046001600160a01b031681565b6102c8610414366004611d57565b61136b565b6102d360125481565b6102d36201518081565b600154600160a01b900460ff16610359565b6102d3600c5481565b6102c8611411565b6102d360085481565b6102c86114bf565b600f546103599060ff1681565b6102c86114d0565b610359610483366004611df3565b600a6020525f908152604090205460ff1681565b6102d360065481565b6102c8611514565b5f546001600160a01b0316610301565b6102d360095481565b6102d3611524565b6102d360145481565b6104da6115d9565b6040805198895260208901979097529587019490945260608601929092526080850152151560a0840152151560c0830152151560e0820152610100016102dd565b6102c8610529366004611e5b565b6116e1565b6102d360035481565b600d546103599060ff1681565b610359610552366004611df3565b5f908152600a602052604090205460ff1690565b6102c8610574366004611df3565b6117b0565b6011546103599060ff1681565b6001546001600160a01b0316610301565b6102c86118c4565b6102d360045481565b6102c86105b6366004611e5b565b6119dd565b6102d360105481565b6103017f000000000000000000000000000000000000000000000000000000000000000081565b6105f3611a4d565b60145482116106495760405162461bcd60e51b815260206004820152601f60248201527f45706f6368206d757374206265206e65776572207468616e206c61746573740060448201526064015b60405180910390fd5b8061068c5760405162461bcd60e51b8152602060048201526013602482015272526f6f742063616e6e6f74206265207a65726f60681b6044820152606401610640565b5f828152601360205260409081902082905560148390555182907fce4a584665374c04448c9e99ac70a3eefb2e8699d3c9f7157c34b8cd33b7b4a6906106de9084904290918252602082015260400190565b60405180910390a25050565b6106f2611a4d565b6040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610756573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061077a9190611e7b565b90505f60045460035461078d9190611ea6565b905080821115610870575f6107a28284611ea6565b90506010548111156108145760405162461bcd60e51b815260206004820152603560248201527f5265636f6e63696c65206578636565647320636170202d207573652066756e64604482015274282920666f72206c61726765206465706f7369747360581b6064820152608401610640565b8060035f8282546108259190611ebf565b90915550506003546040515f917fcd909ec339185c4598a4096e174308fbdf136d117f230960f873a2f2e81f63af9161086691858252602082015260400190565b60405180910390a2505b5050565b61087c611a4d565b600d5460ff166108ce5760405162461bcd60e51b815260206004820152601a60248201527f4e6f207369676e6572206368616e676520746f2063616e63656c0000000000006044820152606401610640565b600d805460ff19169055600b80546001600160a01b03191690555f600c8190556040517f7939db305a92891215f77d37821869856f7d22dac053be62429910481be2a3e89190a1565b5f84815260136020526040812054806109725760405162461bcd60e51b815260206004820181905260248201527f4e6f20726f6f7420636f6d6d697474656420666f7220746869732065706f63686044820152606401610640565b845f5b84811015610a07575f86868381811061099057610990611ed2565b9050602002013590508083116109d15760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506109fe565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50600101610975565b501495945050505050565b610a1a611a4d565b610a22611a79565b600f5460ff16610a745760405162461bcd60e51b815260206004820181905260248201527f4e6f20656d657267656e6379207769746864726177616c2070726f706f7365646044820152606401610640565b600e54421015610abd5760405162461bcd60e51b8152602060048201526014602482015273151a5b595b1bd8dac81b9bdd08195e1c1a5c995960621b6044820152606401610640565b6040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610b21573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b459190611e7b565b90505f8111610b8e5760405162461bcd60e51b81526020600482015260156024820152744e6f20746f6b656e7320746f20776974686472617760581b6044820152606401610640565b600d8054600f805460ff19908116909155610100600160a81b031982169092555f600e55601180549092166001179091556001600160a01b03610100909104811690610bfd907f0000000000000000000000000000000000000000000000000000000000000000168284611a94565b806001600160a01b03167f88093b33e04b73b206661f1eccae231d9dd839b164c5d4dd9a16160987bd802f83604051610c3891815260200190565b60405180910390a25050610c5860015f80516020611f5083398151915255565b565b610c62611a4d565b5f8111610c9f5760405162461bcd60e51b815260206004820152600b60248201526a04d757374206265203e20360ac1b6044820152606401610640565b601055565b6002546001600160a01b03163314610cfe5760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c79207369676e65722063616e20646973747269627574650000000000006044820152606401610640565b610d06611a79565b610d0e611ace565b60115460ff1615610d315760405162461bcd60e51b815260040161064090611ee6565b6001600160a01b038416610d7b5760405162461bcd60e51b8152602060048201526011602482015270125b9d985b1a59081c9958da5c1a595b9d607a1b6044820152606401610640565b5f8311610dbf5760405162461bcd60e51b81526020600482015260126024820152710416d6f756e74206d757374206265203e20360741b6044820152606401610640565b5f828152600a602052604090205460ff1615610e1d5760405162461bcd60e51b815260206004820152601760248201527f436c61696d20616c72656164792070726f6365737365640000000000000000006044820152606401610640565b5f8111610e6c5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420636c61696d2074696d657374616d700000000000000000006044820152606401610640565b601254610e798242611ea6565b1115610eb75760405162461bcd60e51b815260206004820152600d60248201526c10db185a5b48195e1c1a5c9959609a1b6044820152606401610640565b600654831115610f135760405162461bcd60e51b815260206004820152602160248201527f45786365656473207065722d747820646973747269627574696f6e206c696d696044820152601d60fa1b6064820152608401610640565b62015180600954610f249190611ebf565b4210610f33575f600755426009555b60085483600754610f449190611ebf565b1115610fab5760405162461bcd60e51b815260206004820152603060248201527f32346820646973747269627574696f6e206c696d69742072656163686564202d60448201526f103a393c9030b3b0b4b7103630ba32b960811b6064820152608401610640565b60035483600454610fbc9190611ebf565b111561101a5760405162461bcd60e51b815260206004820152602760248201527f496e73756666696369656e74207661756c742062616c616e636520286163636f604482015266756e74696e672960c81b6064820152608401610640565b6040516370a0823160e01b815230600482015283907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561107e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110a29190611e7b565b10156110fc5760405162461bcd60e51b815260206004820152602360248201527f496e73756666696369656e74207661756c742062616c616e6365202861637475604482015262616c2960e81b6064820152608401610640565b5f828152600a60205260408120805460ff1916600117905560048054859290611126908490611ebf565b925050819055508260075f82825461113e9190611ebf565b909155505060058054905f61115283611f37565b9091555061118c90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168585611a94565b6040805184815242602082015283916001600160a01b038716917f1e1e6e6905b796c5b12f6c1c702e050c99f1d6ddc11dc8ce1eb1f74736168811910160405180910390a36111e760015f80516020611f5083398151915255565b50505050565b6111f5611a4d565b62093a808110156112395760405162461bcd60e51b815260206004820152600e60248201526d4d696e696d756d2037206461797360901b6044820152606401610640565b6301e1338081111561127e5760405162461bcd60e51b815260206004820152600e60248201526d26b0bc34b6bab69018903cb2b0b960911b6044820152606401610640565b601255565b61128b611a4d565b5f60075542600955610c58611af9565b6112a3611a4d565b6001600160a01b0381166112ea5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b4b3b732b960911b6044820152606401610640565b600b80546001600160a01b0319166001600160a01b03831617905561131262093a8042611ebf565b600c819055600d805460ff191660011790556040516001600160a01b038316917f434b4634c3a1f4d25d03f2678509efebe56b45a4408054346cafd0c3f42e94479161136091815260200190565b60405180910390a250565b611373611a4d565b5f8211801561138157505f81115b801561138d5750818110155b6113ca5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c6964206c696d69747360901b6044820152606401610640565b6006829055600881905560408051838152602081018390527f32c4bd0400041a146ef1c6989b4b4123654b3d8c190208e2f7b414f801cc1d24910160405180910390a15050565b611419611a4d565b600f5460ff166114755760405162461bcd60e51b815260206004820152602160248201527f4e6f20656d657267656e6379207769746864726177616c20746f2063616e63656044820152601b60fa1b6064820152608401610640565b600f805460ff19169055600d8054610100600160a81b03191690555f600e8190556040517f685cb00d0fbd43f182608964bd25c5f94375834a1d827327c90935edf4a14e5d9190a1565b6114c7611a4d565b610c585f611b4e565b60015433906001600160a01b031681146115085760405163118cdaa760e01b81526001600160a01b0382166004820152602401610640565b61151181611b4e565b50565b61151c611a4d565b610c58611b67565b5f806004546003546115369190611ea6565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561159d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115c19190611e7b565b90508082106115d057806115d2565b815b9250505090565b5f805f805f805f805f6004546003546115f29190611ea6565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611659573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061167d9190611e7b565b90506003546004548284106116925782611694565b835b600554600754600154600160a01b900460ff16600f5f9054906101000a900460ff16600d5f9054906101000a900460ff169950995099509950995099509950995050509091929394959697565b6116e9611a4d565b6001600160a01b0381166117355760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b9ba34b730ba34b7b760691b6044820152606401610640565b600d8054610100600160a81b0319166101006001600160a01b0384160217905561176262093a8042611ebf565b600e819055600f805460ff191660011790556040516001600160a01b038316917f5c84ace2d8829bc5712bae9ec929216aeb9c97adc6c2ccd947f6c1c649cc2f839161136091815260200190565b6117b8611a79565b60115460ff16156117db5760405162461bcd60e51b815260040161064090611ee6565b5f811161181f5760405162461bcd60e51b81526020600482015260126024820152710416d6f756e74206d757374206265203e20360741b6044820152606401610640565b6118546001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611baa565b8060035f8282546118659190611ebf565b909155505060035460405133917fcd909ec339185c4598a4096e174308fbdf136d117f230960f873a2f2e81f63af916118a691858252602082015260400190565b60405180910390a261151160015f80516020611f5083398151915255565b6118cc611a4d565b600d5460ff1661191e5760405162461bcd60e51b815260206004820152601960248201527f4e6f207369676e6572206368616e67652070726f706f736564000000000000006044820152606401610640565b600c544210156119705760405162461bcd60e51b815260206004820152601b60248201527f5369676e65722074696d656c6f636b206e6f74206578706972656400000000006044820152606401610640565b60028054600b80546001600160a01b03198084166001600160a01b03838116918217909655600d805460ff1916905591169091555f600c8190556040519390921692909183917fabdc0ae7ce5b19117a79e7a3b61866d31d55a7d596435281d935f3cde5aefd729190a350565b6119e5611a4d565b600180546001600160a01b0383166001600160a01b03199091168117909155611a155f546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b5f546001600160a01b03163314610c585760405163118cdaa760e01b8152336004820152602401610640565b611a81611be0565b60025f80516020611f5083398151915255565b611aa18383836001611c0f565b611ac957604051635274afe760e01b81526001600160a01b0384166004820152602401610640565b505050565b600154600160a01b900460ff1615610c585760405163d93c066560e01b815260040160405180910390fd5b611b01611c71565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b031916905561151181611c9b565b611b6f611ace565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b313390565b611bb8848484846001611cea565b6111e757604051635274afe760e01b81526001600160a01b0385166004820152602401610640565b5f80516020611f5083398151915254600203610c5857604051633ee5aeb560e01b815260040160405180910390fd5b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611c65578383151615611c59573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b600154600160a01b900460ff16610c5857604051638dfc202b60e01b815260040160405180910390fd5b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f51148316611d46578383151615611d3a573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b5f8060408385031215611d68575f80fd5b50508035926020909101359150565b5f805f8060608587031215611d8a575f80fd5b8435935060208501359250604085013567ffffffffffffffff80821115611daf575f80fd5b818701915087601f830112611dc2575f80fd5b813581811115611dd0575f80fd5b8860208260051b8501011115611de4575f80fd5b95989497505060200194505050565b5f60208284031215611e03575f80fd5b5035919050565b80356001600160a01b0381168114611e20575f80fd5b919050565b5f805f8060808587031215611e38575f80fd5b611e4185611e0a565b966020860135965060408601359560600135945092505050565b5f60208284031215611e6b575f80fd5b611e7482611e0a565b9392505050565b5f60208284031215611e8b575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b81810381811115611eb957611eb9611e92565b92915050565b80820180821115611eb957611eb9611e92565b634e487b7160e01b5f52603260045260245ffd5b60208082526031908201527f5661756c74207065726d616e656e746c7920636c6f73656420616674657220656040820152706d657267656e637920776974686472617760781b606082015260800190565b5f60018201611f4857611f48611e92565b506001019056fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a264697066735822122024169f88ccb45811569fbc60f5fe1a856d217b1a0720a0129da15c755b7d2d9764736f6c63430008180033000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc8000000000000000000000000f71b15d9610ccee7cd291a2a6616b1188dfbed57
Deployed ByteCode
0x608060405234801561000f575f80fd5b50600436106102b1575f3560e01c8063683131c91161017b578063a59aa5a6116100e4578063e28701ee1161009e578063efca2eed11610079578063efca2eed1461059f578063f2fde38b146105a8578063f4dfacd1146105bb578063fcb34c4b146105c4575f80fd5b8063e28701ee14610579578063e30c397814610586578063ebabcf9614610597575f80fd5b8063a59aa5a6146104d2578063ac6653c51461051b578063ad044f491461052e578063b5349ce214610537578063bcacccbc14610544578063ca1d209d14610566575f80fd5b80638131c1f3116101355780638131c1f3146104975780638456cb59146104a05780638da5cb5b146104a857806394a7fcdf146104b857806397763778146104c15780639f84fe0f146104c9575f80fd5b8063683131c9146104475780636f8000961461044f578063715018a614610458578063765535cb1461046057806379ba50971461046d5780637d548c6414610475575f80fd5b80632bf4b5cc1161021d5780634dff5766116101d75780634dff5766146104065780635abc657d146104195780635b0a8fad146104225780635c975abb1461042c57806360d7442b1461039057806361cd8b291461043e575f80fd5b80632bf4b5cc1461039a57806333118862146103ad5780633be97618146103c05780633f4ba83a146103d35780633f8a2b2c146103db57806349b26c82146103ee575f80fd5b806323383e8a1161026e57806323383e8a1461032a578063238ac93314610333578063244c1e8314610346578063289a88ff146103695780632a8821cc146103885780632b9e8a2514610390575f80fd5b8063032cb088146102b557806304d04de9146102ca5780630b2ec672146102e657806314d90c45146102ee578063163db71b1461031957806321152eb014610322575b5f80fd5b6102c86102c3366004611d57565b6105eb565b005b6102d360075481565b6040519081526020015b60405180910390f35b6102c86106ea565b600b54610301906001600160a01b031681565b6040516001600160a01b0390911681526020016102dd565b6102d360055481565b6102c8610874565b6102d3600e5481565b600254610301906001600160a01b031681565b610359610354366004611d77565b610917565b60405190151581526020016102dd565b6102d3610377366004611df3565b60136020525f908152604090205481565b6102c8610a12565b6102d362093a8081565b6102c86103a8366004611df3565b610c5a565b6102c86103bb366004611e25565b610ca4565b6102c86103ce366004611df3565b6111ed565b6102c8611283565b6102c86103e9366004611e5b565b61129b565b600d546103019061010090046001600160a01b031681565b6102c8610414366004611d57565b61136b565b6102d360125481565b6102d36201518081565b600154600160a01b900460ff16610359565b6102d3600c5481565b6102c8611411565b6102d360085481565b6102c86114bf565b600f546103599060ff1681565b6102c86114d0565b610359610483366004611df3565b600a6020525f908152604090205460ff1681565b6102d360065481565b6102c8611514565b5f546001600160a01b0316610301565b6102d360095481565b6102d3611524565b6102d360145481565b6104da6115d9565b6040805198895260208901979097529587019490945260608601929092526080850152151560a0840152151560c0830152151560e0820152610100016102dd565b6102c8610529366004611e5b565b6116e1565b6102d360035481565b600d546103599060ff1681565b610359610552366004611df3565b5f908152600a602052604090205460ff1690565b6102c8610574366004611df3565b6117b0565b6011546103599060ff1681565b6001546001600160a01b0316610301565b6102c86118c4565b6102d360045481565b6102c86105b6366004611e5b565b6119dd565b6102d360105481565b6103017f000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc881565b6105f3611a4d565b60145482116106495760405162461bcd60e51b815260206004820152601f60248201527f45706f6368206d757374206265206e65776572207468616e206c61746573740060448201526064015b60405180910390fd5b8061068c5760405162461bcd60e51b8152602060048201526013602482015272526f6f742063616e6e6f74206265207a65726f60681b6044820152606401610640565b5f828152601360205260409081902082905560148390555182907fce4a584665374c04448c9e99ac70a3eefb2e8699d3c9f7157c34b8cd33b7b4a6906106de9084904290918252602082015260400190565b60405180910390a25050565b6106f2611a4d565b6040516370a0823160e01b81523060048201525f907f000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc86001600160a01b0316906370a0823190602401602060405180830381865afa158015610756573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061077a9190611e7b565b90505f60045460035461078d9190611ea6565b905080821115610870575f6107a28284611ea6565b90506010548111156108145760405162461bcd60e51b815260206004820152603560248201527f5265636f6e63696c65206578636565647320636170202d207573652066756e64604482015274282920666f72206c61726765206465706f7369747360581b6064820152608401610640565b8060035f8282546108259190611ebf565b90915550506003546040515f917fcd909ec339185c4598a4096e174308fbdf136d117f230960f873a2f2e81f63af9161086691858252602082015260400190565b60405180910390a2505b5050565b61087c611a4d565b600d5460ff166108ce5760405162461bcd60e51b815260206004820152601a60248201527f4e6f207369676e6572206368616e676520746f2063616e63656c0000000000006044820152606401610640565b600d805460ff19169055600b80546001600160a01b03191690555f600c8190556040517f7939db305a92891215f77d37821869856f7d22dac053be62429910481be2a3e89190a1565b5f84815260136020526040812054806109725760405162461bcd60e51b815260206004820181905260248201527f4e6f20726f6f7420636f6d6d697474656420666f7220746869732065706f63686044820152606401610640565b845f5b84811015610a07575f86868381811061099057610990611ed2565b9050602002013590508083116109d15760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506109fe565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50600101610975565b501495945050505050565b610a1a611a4d565b610a22611a79565b600f5460ff16610a745760405162461bcd60e51b815260206004820181905260248201527f4e6f20656d657267656e6379207769746864726177616c2070726f706f7365646044820152606401610640565b600e54421015610abd5760405162461bcd60e51b8152602060048201526014602482015273151a5b595b1bd8dac81b9bdd08195e1c1a5c995960621b6044820152606401610640565b6040516370a0823160e01b81523060048201525f907f000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc86001600160a01b0316906370a0823190602401602060405180830381865afa158015610b21573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b459190611e7b565b90505f8111610b8e5760405162461bcd60e51b81526020600482015260156024820152744e6f20746f6b656e7320746f20776974686472617760581b6044820152606401610640565b600d8054600f805460ff19908116909155610100600160a81b031982169092555f600e55601180549092166001179091556001600160a01b03610100909104811690610bfd907f000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc8168284611a94565b806001600160a01b03167f88093b33e04b73b206661f1eccae231d9dd839b164c5d4dd9a16160987bd802f83604051610c3891815260200190565b60405180910390a25050610c5860015f80516020611f5083398151915255565b565b610c62611a4d565b5f8111610c9f5760405162461bcd60e51b815260206004820152600b60248201526a04d757374206265203e20360ac1b6044820152606401610640565b601055565b6002546001600160a01b03163314610cfe5760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c79207369676e65722063616e20646973747269627574650000000000006044820152606401610640565b610d06611a79565b610d0e611ace565b60115460ff1615610d315760405162461bcd60e51b815260040161064090611ee6565b6001600160a01b038416610d7b5760405162461bcd60e51b8152602060048201526011602482015270125b9d985b1a59081c9958da5c1a595b9d607a1b6044820152606401610640565b5f8311610dbf5760405162461bcd60e51b81526020600482015260126024820152710416d6f756e74206d757374206265203e20360741b6044820152606401610640565b5f828152600a602052604090205460ff1615610e1d5760405162461bcd60e51b815260206004820152601760248201527f436c61696d20616c72656164792070726f6365737365640000000000000000006044820152606401610640565b5f8111610e6c5760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420636c61696d2074696d657374616d700000000000000000006044820152606401610640565b601254610e798242611ea6565b1115610eb75760405162461bcd60e51b815260206004820152600d60248201526c10db185a5b48195e1c1a5c9959609a1b6044820152606401610640565b600654831115610f135760405162461bcd60e51b815260206004820152602160248201527f45786365656473207065722d747820646973747269627574696f6e206c696d696044820152601d60fa1b6064820152608401610640565b62015180600954610f249190611ebf565b4210610f33575f600755426009555b60085483600754610f449190611ebf565b1115610fab5760405162461bcd60e51b815260206004820152603060248201527f32346820646973747269627574696f6e206c696d69742072656163686564202d60448201526f103a393c9030b3b0b4b7103630ba32b960811b6064820152608401610640565b60035483600454610fbc9190611ebf565b111561101a5760405162461bcd60e51b815260206004820152602760248201527f496e73756666696369656e74207661756c742062616c616e636520286163636f604482015266756e74696e672960c81b6064820152608401610640565b6040516370a0823160e01b815230600482015283907f000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc86001600160a01b0316906370a0823190602401602060405180830381865afa15801561107e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110a29190611e7b565b10156110fc5760405162461bcd60e51b815260206004820152602360248201527f496e73756666696369656e74207661756c742062616c616e6365202861637475604482015262616c2960e81b6064820152608401610640565b5f828152600a60205260408120805460ff1916600117905560048054859290611126908490611ebf565b925050819055508260075f82825461113e9190611ebf565b909155505060058054905f61115283611f37565b9091555061118c90506001600160a01b037f000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc8168585611a94565b6040805184815242602082015283916001600160a01b038716917f1e1e6e6905b796c5b12f6c1c702e050c99f1d6ddc11dc8ce1eb1f74736168811910160405180910390a36111e760015f80516020611f5083398151915255565b50505050565b6111f5611a4d565b62093a808110156112395760405162461bcd60e51b815260206004820152600e60248201526d4d696e696d756d2037206461797360901b6044820152606401610640565b6301e1338081111561127e5760405162461bcd60e51b815260206004820152600e60248201526d26b0bc34b6bab69018903cb2b0b960911b6044820152606401610640565b601255565b61128b611a4d565b5f60075542600955610c58611af9565b6112a3611a4d565b6001600160a01b0381166112ea5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b4b3b732b960911b6044820152606401610640565b600b80546001600160a01b0319166001600160a01b03831617905561131262093a8042611ebf565b600c819055600d805460ff191660011790556040516001600160a01b038316917f434b4634c3a1f4d25d03f2678509efebe56b45a4408054346cafd0c3f42e94479161136091815260200190565b60405180910390a250565b611373611a4d565b5f8211801561138157505f81115b801561138d5750818110155b6113ca5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c6964206c696d69747360901b6044820152606401610640565b6006829055600881905560408051838152602081018390527f32c4bd0400041a146ef1c6989b4b4123654b3d8c190208e2f7b414f801cc1d24910160405180910390a15050565b611419611a4d565b600f5460ff166114755760405162461bcd60e51b815260206004820152602160248201527f4e6f20656d657267656e6379207769746864726177616c20746f2063616e63656044820152601b60fa1b6064820152608401610640565b600f805460ff19169055600d8054610100600160a81b03191690555f600e8190556040517f685cb00d0fbd43f182608964bd25c5f94375834a1d827327c90935edf4a14e5d9190a1565b6114c7611a4d565b610c585f611b4e565b60015433906001600160a01b031681146115085760405163118cdaa760e01b81526001600160a01b0382166004820152602401610640565b61151181611b4e565b50565b61151c611a4d565b610c58611b67565b5f806004546003546115369190611ea6565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc816906370a0823190602401602060405180830381865afa15801561159d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115c19190611e7b565b90508082106115d057806115d2565b815b9250505090565b5f805f805f805f805f6004546003546115f29190611ea6565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc816906370a0823190602401602060405180830381865afa158015611659573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061167d9190611e7b565b90506003546004548284106116925782611694565b835b600554600754600154600160a01b900460ff16600f5f9054906101000a900460ff16600d5f9054906101000a900460ff169950995099509950995099509950995050509091929394959697565b6116e9611a4d565b6001600160a01b0381166117355760405162461bcd60e51b815260206004820152601360248201527224b73b30b634b2103232b9ba34b730ba34b7b760691b6044820152606401610640565b600d8054610100600160a81b0319166101006001600160a01b0384160217905561176262093a8042611ebf565b600e819055600f805460ff191660011790556040516001600160a01b038316917f5c84ace2d8829bc5712bae9ec929216aeb9c97adc6c2ccd947f6c1c649cc2f839161136091815260200190565b6117b8611a79565b60115460ff16156117db5760405162461bcd60e51b815260040161064090611ee6565b5f811161181f5760405162461bcd60e51b81526020600482015260126024820152710416d6f756e74206d757374206265203e20360741b6044820152606401610640565b6118546001600160a01b037f000000000000000000000000c3603a8395304a117e8ee784eccbff0063940cc816333084611baa565b8060035f8282546118659190611ebf565b909155505060035460405133917fcd909ec339185c4598a4096e174308fbdf136d117f230960f873a2f2e81f63af916118a691858252602082015260400190565b60405180910390a261151160015f80516020611f5083398151915255565b6118cc611a4d565b600d5460ff1661191e5760405162461bcd60e51b815260206004820152601960248201527f4e6f207369676e6572206368616e67652070726f706f736564000000000000006044820152606401610640565b600c544210156119705760405162461bcd60e51b815260206004820152601b60248201527f5369676e65722074696d656c6f636b206e6f74206578706972656400000000006044820152606401610640565b60028054600b80546001600160a01b03198084166001600160a01b03838116918217909655600d805460ff1916905591169091555f600c8190556040519390921692909183917fabdc0ae7ce5b19117a79e7a3b61866d31d55a7d596435281d935f3cde5aefd729190a350565b6119e5611a4d565b600180546001600160a01b0383166001600160a01b03199091168117909155611a155f546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b5f546001600160a01b03163314610c585760405163118cdaa760e01b8152336004820152602401610640565b611a81611be0565b60025f80516020611f5083398151915255565b611aa18383836001611c0f565b611ac957604051635274afe760e01b81526001600160a01b0384166004820152602401610640565b505050565b600154600160a01b900460ff1615610c585760405163d93c066560e01b815260040160405180910390fd5b611b01611c71565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b031916905561151181611c9b565b611b6f611ace565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611b313390565b611bb8848484846001611cea565b6111e757604051635274afe760e01b81526001600160a01b0385166004820152602401610640565b5f80516020611f5083398151915254600203610c5857604051633ee5aeb560e01b815260040160405180910390fd5b60405163a9059cbb60e01b5f8181526001600160a01b038616600452602485905291602083604481808b5af1925060015f51148316611c65578383151615611c59573d5f823e3d81fd5b5f873b113d1516831692505b60405250949350505050565b600154600160a01b900460ff16610c5857604051638dfc202b60e01b815260040160405180910390fd5b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516323b872dd60e01b5f8181526001600160a01b038781166004528616602452604485905291602083606481808c5af1925060015f51148316611d46578383151615611d3a573d5f823e3d81fd5b5f883b113d1516831692505b604052505f60605295945050505050565b5f8060408385031215611d68575f80fd5b50508035926020909101359150565b5f805f8060608587031215611d8a575f80fd5b8435935060208501359250604085013567ffffffffffffffff80821115611daf575f80fd5b818701915087601f830112611dc2575f80fd5b813581811115611dd0575f80fd5b8860208260051b8501011115611de4575f80fd5b95989497505060200194505050565b5f60208284031215611e03575f80fd5b5035919050565b80356001600160a01b0381168114611e20575f80fd5b919050565b5f805f8060808587031215611e38575f80fd5b611e4185611e0a565b966020860135965060408601359560600135945092505050565b5f60208284031215611e6b575f80fd5b611e7482611e0a565b9392505050565b5f60208284031215611e8b575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b81810381811115611eb957611eb9611e92565b92915050565b80820180821115611eb957611eb9611e92565b634e487b7160e01b5f52603260045260245ffd5b60208082526031908201527f5661756c74207065726d616e656e746c7920636c6f73656420616674657220656040820152706d657267656e637920776974686472617760781b606082015260800190565b5f60018201611f4857611f48611e92565b506001019056fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a264697066735822122024169f88ccb45811569fbc60f5fe1a856d217b1a0720a0129da15c755b7d2d9764736f6c63430008180033