Source Code
Overview
ETH Balance
ETH Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Execute Batch | 6075076 | 579 days ago | IN | 0 ETH | 0.00006682 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 6076704 | 579 days ago | 0 ETH | ||||
| 6076704 | 579 days ago | 0 ETH | ||||
| 6076704 | 579 days ago | 0 ETH | ||||
| 6076685 | 579 days ago | 0 ETH | ||||
| 6075469 | 579 days ago | 0 ETH | ||||
| 6075469 | 579 days ago | 0 ETH | ||||
| 6075469 | 579 days ago | 0 ETH | ||||
| 6075469 | 579 days ago | 0 ETH | ||||
| 6075469 | 579 days ago | 0 ETH | ||||
| 6075469 | 579 days ago | 0 ETH | ||||
| 6075469 | 579 days ago | 0 ETH | ||||
| 6075076 | 579 days ago | 0 ETH | ||||
| 6075076 | 579 days ago | 0 ETH | ||||
| 6075076 | 579 days ago | 0 ETH | ||||
| 6075076 | 579 days ago | 0 ETH | ||||
| 6075076 | 579 days ago | 0 ETH | ||||
| 6075076 | 579 days ago | 0 ETH | ||||
| 6075076 | 579 days ago | 0 ETH | ||||
| 6075076 | 579 days ago | 0 ETH | ||||
| 5931775 | 583 days ago | 0 ETH | ||||
| 5931775 | 583 days ago | 0 ETH | ||||
| 5931775 | 583 days ago | 0 ETH | ||||
| 5931775 | 583 days ago | 0 ETH | ||||
| 5931775 | 583 days ago | 0 ETH | ||||
| 5931775 | 583 days ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x6fD66dFE...8D3391537 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
SmartVault
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/interfaces/IERC20Metadata.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';
import '../interfaces/IPriceFeed.sol';
import '../interfaces/IVaultFactory.sol';
import '../interfaces/IVaultFactoryConfig.sol';
import '../interfaces/ILiquidationRouter.sol';
import '../interfaces/ISmartVaultProxy.sol';
import '../utils/constants.sol';
import '../interfaces/ITokenPriceFeed.sol';
import '../interfaces/IVaultExtraSettings.sol';
import '../utils/linked-address-list.sol';
/**
* @title Smart Vault
* @dev Manages creation, collateralization, borrowing, liquidation of Vaults and whitelisted methods.
*/
contract SmartVault is Context, Constants {
string public constant VERSION = '1.3.0';
// Events emitted by the contract
event CollateralAdded(
address indexed collateral,
uint256 amount,
uint256 newTotalAmount
);
event CollateralRemoved(
address indexed collateral,
uint256 amount,
uint256 newTotalAmount
);
event CollateralRedeemed(
address indexed collateral,
uint256 amount,
uint256 newTotalAmount,
uint256 stableAmountUsed,
uint256 feePaid
);
event Executed(
address indexed caller,
address indexed target,
bytes4 funcSignature,
bytes data
);
event DebtAdded(uint256 amount, uint256 newTotalDebt);
event DebtRepaid(uint256 amount, uint256 newTotalDebt);
event RewardsClaimmed(address token, uint256 amount);
modifier onlyFactory() {
require(_msgSender() == factory, 'only-factory');
_;
}
using SafeERC20 for IERC20;
using EnumerableSet for EnumerableSet.AddressSet;
address public immutable stable;
address public immutable factory;
address public vaultOwner;
string public name;
EnumerableSet.AddressSet private collateralSet;
EnumerableSet.AddressSet private operators;
IVaultExtraSettings public vaultExtraSettings;
ISmartVaultProxy public smartVaultProxy;
mapping(address => uint256) public collateral;
uint256 public debt;
modifier onlyVaultOwner() {
require(_msgSender() == vaultOwner, 'only-vault-owner');
_;
}
/**
* @dev Constructor to initialize the Vault contract.
* @param _factory Address of the VaultFactory contract.
* @param _vaultOwner Address of the initial owner of the Vault.
* @param _name Name of the Vault.
* @param _vaultExtraSettings Vault extra settings address.
* @param _smartVaultProxy Smart Vault Proxy address.
*/
constructor(
address _factory,
address _vaultOwner,
string memory _name,
IVaultExtraSettings _vaultExtraSettings,
ISmartVaultProxy _smartVaultProxy
) {
require(_vaultOwner != address(0x0), 'vault-owner-is-0');
require(bytes(_name).length > 0, 'name-is-empty');
require(_factory != address(0x0), 'factory-is-0');
require(
address(_vaultExtraSettings) != address(0x0),
'vault-extra-settings-is-0'
);
require(address(_smartVaultProxy) != address(0x0), 'vault-proxy-is-0');
factory = _factory;
vaultOwner = _vaultOwner;
stable = IVaultFactory(factory).stable();
name = _name;
vaultExtraSettings = _vaultExtraSettings;
smartVaultProxy = _smartVaultProxy;
}
/**
* @dev Transfers ownership of the Vault to a new owner.
* @param _newOwner Address of the new owner.
*/
function transferVaultOwnership(address _newOwner) external onlyFactory {
vaultOwner = _newOwner;
}
/**
* @dev Executes a batch of functions on target addresses only if the methods are allowed.
* @param _targets The contract addresses where the functions will be called.
* @param _signatures The signatures of the functions to be executed.
* @param _data The data to be passed to the functions.
* @param _claimRewards The pending reward tokens to transfer to the owner vault - Optional.
* @return _results The result of the function execution.
*/
function executeBatch(
address[] memory _targets,
bytes4[] memory _signatures,
bytes[] memory _data,
address[] memory _claimRewards
) external onlyVaultOwner returns (bytes[] memory _results) {
require(_targets.length > 0, 'Targets array cannot be empty');
require(_signatures.length > 0, 'Signatures array cannot be empty');
require(_data.length > 0, 'Data array cannot be empty');
require(
_targets.length == _signatures.length &&
_targets.length == _data.length,
'Lengths of targets, functions, and data arrays must match'
);
_results = new bytes[](_targets.length);
for (uint i = 0; i < _targets.length; i++) {
_results[i] = execute(_targets[i], _signatures[i], _data[i]);
}
if (_claimRewards.length > 0) {
for (uint i = 0; i < _claimRewards.length; ) {
_claimPendingRewards(_claimRewards[i]);
unchecked {
i++;
}
}
}
return _results;
}
/**
* @dev Executes a function on a target address only if the method is allowed.
* @param _target The contract address where the function will be called.
* @param _signature The signature of the function to be executed.
* @param _data The data to be passed to the function.
* @return _result The result of the function execution.
*/
function execute(
address _target,
bytes4 _signature,
bytes memory _data
) private returns (bytes memory _result) {
require(
smartVaultProxy.isWhitelisted(_target, _signature),
'invalid-permission'
);
emit Executed(_msgSender(), _target, _signature, _data);
_result = Address.functionCall(
_target,
bytes.concat(_signature, _data)
);
}
/**
* @dev Sets a new name for the Vault.
* @param _name New name for the Vault.
*/
function setName(string memory _name) external onlyVaultOwner {
require(bytes(_name).length > 0, 'name-is-empty');
name = _name;
}
/**
* @dev Adds an operator to the Vault, allowing them certain permissions.
* @param _operator Address of the operator to be added.
*/
function addOperator(address _operator) external onlyVaultOwner {
require(_operator != address(0x0), 'operator-is-0');
operators.add(_operator);
}
/**
* @dev Removes an operator from the Vault, revoking their permissions.
* @param _operator Address of the operator to be removed.
*/
function removeOperator(address _operator) external onlyVaultOwner {
require(_operator != address(0x0), 'operator-is-0');
operators.remove(_operator);
}
/**
* @dev Checks if an address is an operator for this Vault.
* @param _operator Address to check.
* @return Boolean indicating whether the address is an operator.
*/
function isOperator(address _operator) external view returns (bool) {
return operators.contains(_operator);
}
/**
* @dev Returns the number of operators in the Vault.
* @return Length of the operators set.
*/
function operatorsLength() external view returns (uint256) {
return operators.length();
}
/**
* @dev Returns the operator at a given index in the operators set.
* @param _index Index of the operator.
* @return Address of the operator at the given index.
*/
function operatorAt(uint256 _index) external view returns (address) {
return operators.at(_index);
}
/**
* @dev Checks if a collateral token is added to the Vault.
* @param _collateral Address of the collateral token to check.
* @return Boolean indicating whether the collateral token is added.
*/
function containsCollateral(
address _collateral
) external view returns (bool) {
return collateralSet.contains(_collateral);
}
/**
* @dev Returns the number of collateral tokens added to the Vault.
* @return Length of the collateral set.
*/
function collateralsLength() external view returns (uint256) {
return collateralSet.length();
}
/**
* @dev Returns the collateral token address at a given index in the collateral set.
* @param _index Index of the collateral token.
* @return Address of the collateral token at the given index.
*/
function collateralAt(uint256 _index) external view returns (address) {
return collateralSet.at(_index);
}
/**
* @dev Returns an array containing all collateral token addresses in the Vault.
* @return Array of collateral token addresses.
*/
function collaterals() external view returns (address[] memory) {
address[] memory _collaterals = new address[](collateralSet.length());
for (uint256 i = 0; i < collateralSet.length(); i++) {
_collaterals[i] = collateralSet.at(i);
}
return _collaterals;
}
/**
* @dev Adds a new collateral token to the Vault and updates the collateral amount.
* @param _collateral Address of the collateral token to add.
* @param _amount Amount of the collateral token to add.
*/
function addCollateral(
address _collateral,
uint256 _amount
) external onlyFactory {
require(_collateral != address(0x0), 'collateral-is-0');
require(_amount > 0, 'amount-is-0');
collateralSet.add(_collateral);
uint256 _maxTokens = IVaultFactory(factory).MAX_TOKENS_PER_VAULT();
require(collateralSet.length() <= _maxTokens, 'max-tokens-reached');
collateral[_collateral] += _amount;
emit CollateralAdded(_collateral, _amount, collateral[_collateral]);
}
/**
* @dev Removes a collateral token from the Vault and transfers it back to the sender.
* @param _collateral Address of the collateral token to remove.
* @param _amount Amount of the collateral token to remove.
* @param _to Address to receive the removed collateral.
*/
function removeCollateral(
address _collateral,
uint256 _amount,
address _to
) external onlyFactory {
require(_collateral != address(0x0), 'collateral-is-0');
require(_amount > 0, 'amount-is-0');
collateral[_collateral] -= _amount;
if (collateral[_collateral] == 0) {
collateralSet.remove(_collateral);
}
uint256 _healthFactor = healthFactor(false);
require(_healthFactor >= DECIMAL_PRECISION, 'health-factor-below-1');
IERC20(_collateral).safeTransfer(_to, _amount);
emit CollateralRemoved(_collateral, _amount, collateral[_collateral]);
}
/**
* @dev Adds bad debt to the Vault.
* @param _amount Amount of bad debt to add.
*/
function addBadDebt(uint256 _amount) external onlyFactory {
require(_amount > 0, 'amount-is-0');
debt += _amount;
emit DebtAdded(_amount, debt);
}
/**
* @dev Calculates the maximum borrowable amount and the current borrowable amount.
* @return _maxBorrowable Maximum borrowable amount.
* @return _borrowable Current borrowable amount.
*/
function borrowable()
public
view
returns (uint256 _maxBorrowable, uint256 _borrowable)
{
(_maxBorrowable, _borrowable) = borrowableWithDiff(
address(0x0),
0,
false,
false
);
}
/**
* @dev Borrows a specified amount from the Vault.
* @param _amount Amount to borrow.
*/
function borrow(uint256 _amount) external onlyFactory {
require(_amount > 0, 'amount-is-0');
(uint256 _maxBorrowable, uint256 _borrowable) = borrowable();
require(_amount <= _borrowable, 'not-enough-borrowable');
debt += _amount;
require(debt <= _maxBorrowable, 'max-borrowable-reached');
emit DebtAdded(_amount, debt);
}
/**
* @dev Repays a specified amount to the Vault's debt.
* @param _amount Amount to repay.
*/
function repay(uint256 _amount) external onlyFactory {
require(_amount <= debt, 'amount-exceeds-debt');
debt -= _amount;
emit DebtRepaid(_amount, debt);
}
/**
* @dev Calculates the stable amount needed and the redemption fee for redeeming collateral.
* @param _collateral Address of the collateral token.
* @param _collateralAmount Amount of collateral to redeem.
* @return _stableAmountNeeded Stablecoin amount required to redeem collateral.
* @return _redemptionFee Fee charged for the redemption.
*/
function calcRedeem(
address _collateral,
uint256 _collateralAmount
)
public
view
returns (uint256 _stableAmountNeeded, uint256 _redemptionFee)
{
ITokenPriceFeed _priceFeed = ITokenPriceFeed(
IVaultFactory(factory).priceFeed()
);
uint256 _price = _priceFeed.tokenPrice(_collateral);
uint256 _normalizedCollateralAmount = _collateralAmount *
(10 ** (18 - _priceFeed.decimals(_collateral)));
_stableAmountNeeded =
(_normalizedCollateralAmount * _price) /
DECIMAL_PRECISION;
(, , uint256 _redemptionKickbackRate) = vaultExtraSettings
.getExtraSettings();
if (_redemptionKickbackRate > 0) {
uint256 _kickbackAmount = (_stableAmountNeeded *
_redemptionKickbackRate) / DECIMAL_PRECISION;
_stableAmountNeeded += _kickbackAmount;
}
uint256 _redemptionRate = IVaultFactoryConfig(factory).redemptionRate();
_redemptionFee =
(_stableAmountNeeded * _redemptionRate) /
DECIMAL_PRECISION;
}
/**
* @dev Redeems a specified amount of collateral, repays debt, and transfers collateral back to the redeemer.
* @param _collateral Address of the collateral token to redeem.
* @param _collateralAmount Amount of collateral to redeem.
* @return _debtRepaid Amount of debt repaid.
* @return _feeCollected Fee collected for the redemption.
*/
function redeem(
address _collateral,
uint256 _collateralAmount
)
external
onlyFactory
returns (uint256 _debtRepaid, uint256 _feeCollected)
{
require(_collateral != address(0x0), 'collateral-is-0');
require(_collateralAmount > 0, 'amount-is-0');
require(collateralSet.contains(_collateral), 'collateral-not-added');
require(
collateral[_collateral] >= _collateralAmount,
'not-enough-collateral'
);
uint256 _currentHealthFactor = healthFactor(true);
uint256 _redemptionHealthFactorLimit = IVaultFactoryConfig(factory)
.redemptionHealthFactorLimit();
require(
_currentHealthFactor < _redemptionHealthFactorLimit,
'health-factor-above-redemption-limit'
);
(
uint256 _debtTreshold,
uint256 _maxRedeemablePercentage,
) = vaultExtraSettings.getExtraSettings();
collateral[_collateral] -= _collateralAmount;
(_debtRepaid, _feeCollected) = calcRedeem(
_collateral,
_collateralAmount
);
if (debt > _debtTreshold) {
uint256 _redeemableDebt = (debt * _maxRedeemablePercentage) /
DECIMAL_PRECISION;
require(_debtRepaid <= _redeemableDebt, 'redeemable-debt-exceeded');
}
debt -= _debtRepaid;
if (collateral[_collateral] == 0) {
collateralSet.remove(_collateral);
}
IERC20(_collateral).safeTransfer(_msgSender(), _collateralAmount);
emit CollateralRedeemed(
_collateral,
_collateralAmount,
collateral[_collateral],
_debtRepaid,
_feeCollected
);
emit DebtRepaid(_debtRepaid, debt);
}
/**
* @dev Computes the health factor of the Vault.
* @param _useMlr Flag to use Minimum Loan Ratio (MLR) in health factor computation.
* @return _healthFactor Current health factor.
*/
function healthFactor(
bool _useMlr
) public view returns (uint256 _healthFactor) {
if (debt == 0) {
return type(uint256).max;
}
(uint256 _maxBorrowable, ) = borrowableWithDiff(
address(0x0),
0,
false,
_useMlr
);
_healthFactor = (_maxBorrowable * DECIMAL_PRECISION) / debt;
}
/**
* @dev Computes a new health factor given a new debt value.
* @param _newDebt New debt amount to calculate the health factor.
* @param _useMlr Flag to use Minimum Loan Ratio (MLR) in health factor computation.
* @return _newHealthFactor Calculated new health factor based on the new debt value.
*/
function newHealthFactor(
uint256 _newDebt,
bool _useMlr
) public view returns (uint256 _newHealthFactor) {
if (_newDebt == 0) {
return type(uint256).max;
}
(uint256 _maxBorrowable, ) = borrowableWithDiff(
address(0x0),
0,
false,
_useMlr
);
_newHealthFactor = (_maxBorrowable * DECIMAL_PRECISION) / _newDebt;
}
/**
* @dev Computes the maximum borrowable amount and the current borrowable amount.
* @param _collateral Address of the collateral token (0x0 for total vault borrowable).
* @param _diffAmount Difference in collateral amount when adding/removing collateral.
* @param _isAdd Flag indicating whether the collateral is added or removed.
* @param _useMlr Flag to use Minimum Loan Ratio (MLR) in borrowable computation.
* @return _maxBorrowable Maximum borrowable amount.
* @return _borrowable Current borrowable amount based on the collateral.
*/
function borrowableWithDiff(
address _collateral,
uint256 _diffAmount,
bool _isAdd,
bool _useMlr
) public view returns (uint256 _maxBorrowable, uint256 _borrowable) {
uint256 _newCollateralAmount = collateral[_collateral];
uint256 _borrowableAmount = 0;
if (_collateral != address(0x0)) {
require(
IVaultFactory(factory).isCollateralSupported(_collateral),
'collateral-not-supported'
);
if (_isAdd) {
_newCollateralAmount += _diffAmount;
} else {
_newCollateralAmount -= _diffAmount;
}
}
ITokenPriceFeed _priceFeed = ITokenPriceFeed(
IVaultFactory(factory).priceFeed()
);
for (uint256 i = 0; i < collateralSet.length(); i++) {
address _c = collateralSet.at(i);
uint256 _collateralAmount = _c == _collateral
? _newCollateralAmount
: collateral[_c];
uint256 _price = _priceFeed.tokenPrice(_c);
uint256 _divisor = _useMlr
? _priceFeed.mlr(_c)
: _priceFeed.mcr(_c);
uint256 _normalizedCollateralAmount = _collateralAmount *
(10 ** (18 - _priceFeed.decimals(_c)));
uint256 _collateralBorrowable = (_normalizedCollateralAmount *
_price) / DECIMAL_PRECISION;
_borrowableAmount +=
(_collateralBorrowable * DECIMAL_PRECISION) /
_divisor;
}
return (
_borrowableAmount,
(_borrowableAmount > debt) ? _borrowableAmount - debt : 0
);
}
/**
* @dev Liquidates the vault by repaying all debts with seized collateral.
* @return _forgivenDebt Amount of debt forgiven during liquidation.
*/
function liquidate() external onlyFactory returns (uint256 _forgivenDebt) {
require(
healthFactor(true) < DECIMAL_PRECISION,
'liquidation-factor-above-1'
);
uint256 _debt = debt;
debt = 0;
ILiquidationRouter router = ILiquidationRouter(
IVaultFactory(factory).liquidationRouter()
);
for (uint256 i = 0; i < collateralSet.length(); i++) {
address _collateral = collateralSet.at(i);
uint256 _collateralAmount = collateral[_collateral];
uint256 _actualCollateralBalance = IERC20(_collateral).balanceOf(
address(this)
);
if (_actualCollateralBalance < _collateralAmount) {
_collateralAmount = _actualCollateralBalance;
}
collateral[_collateral] = 0;
IERC20(_collateral).safeApprove(
IVaultFactory(factory).liquidationRouter(),
0
);
IERC20(_collateral).safeApprove(
IVaultFactory(factory).liquidationRouter(),
_collateralAmount
);
router.addSeizedCollateral(_collateral, _collateralAmount);
}
router.addUnderWaterDebt(address(this), _debt);
router.tryLiquidate();
_forgivenDebt = _debt;
}
/**
* @dev Claims pending rewards for a specific token.
* @param _token The token address for which rewards are being claimed.
*/
function _claimPendingRewards(address _token) private {
require(
!IVaultFactory(factory).isCollateralSupported(_token),
'cant-transfer-collateral'
);
uint256 balance = IERC20(_token).balanceOf(address(this));
uint256 fee = (balance * smartVaultProxy.rewardFee()) / 10000;
require(
IERC20(_token).transfer(vaultOwner, balance - fee),
'reward-claim-failed'
);
require(
IERC20(_token).transfer(smartVaultProxy.rewardCollector(), fee),
'reward-fee-claim-failed'
);
emit RewardsClaimmed(_token, balance);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../token/ERC20/extensions/IERC20Metadata.sol";
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 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 {
using Address for address;
/**
* @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 {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @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 {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @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.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), 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 data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), 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 data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
interface ILiquidationRouter {
function addSeizedCollateral(address _collateral, uint256 _amount) external;
function addUnderWaterDebt(address _vault, uint256 _amount) external;
function removeUnderWaterDebt(uint256 _amount) external;
function underWaterDebt() external view returns (uint256);
function collaterals() external view returns (address[] memory);
function collateral(address _collateral) external view returns (uint256);
function tryLiquidate() external;
function stabilityPool() external view returns (address);
function auctionManager() external view returns (address);
function lastResortLiquidation() external view returns (address);
function distributeBadDebt(address _vault, uint256 _amount) external;
function transferOwnership(address newOwner) external;
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
interface IOwnable {
/**
* @dev Returns the address of the current owner.
*/
function owner() external view returns (address);
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) external;
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
interface IPriceFeed {
function token() external view returns (address);
function price() external view returns (uint256);
function pricePoint() external view returns (uint256);
function emitPriceSignal() external;
event PriceUpdate(address token, uint256 price, uint256 average);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.25;
interface ISmartVaultProxy {
function addPermission(
address caller,
address targetAddress,
bytes4 targetSignature
) external returns (bool);
function removePermission(uint256 permissionHash) external returns (bool);
function isWhitelisted(
address targetAddress,
bytes4 targetSignature
) external returns (bool);
function rewardFee() external view returns (uint16);
function rewardCollector() external view returns (address);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
import './IOwnable.sol';
interface ITokenPriceFeed is IOwnable {
struct TokenInfo {
address priceFeed;
uint256 mcr; // Minimum Collateralization Ratio
uint256 mlr; // Minimum Liquidation Ratio
uint256 borrowRate;
uint256 decimals;
}
function tokenPriceFeed(address) external view returns (address);
function tokenPrice(address _token) external view returns (uint256);
function mcr(address _token) external view returns (uint256);
function decimals(address _token) external view returns (uint256);
function mlr(address _token) external view returns (uint256);
function borrowRate(address _token) external view returns (uint256);
function setTokenPriceFeed(
address _token,
address _priceFeed,
uint256 _mcr,
uint256 _mlr,
uint256 _borrowRate,
uint256 /* _decimals */
) external;
event NewTokenPriceFeed(
address _token,
address _priceFeed,
string _name,
string _symbol,
uint256 _mcr,
uint256 _mlr,
uint256 _borrowRate,
uint256 _decimals
);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
interface IVaultExtraSettings {
function setMaxRedeemablePercentage(
uint256 _debtTreshold,
uint256 _maxRedeemablePercentage
) external;
function setRedemptionKickback(uint256 _redemptionKickback) external;
function getExtraSettings()
external
view
returns (
uint256 _debtTreshold,
uint256 _maxRedeemablePercentage,
uint256 _redemptionKickback
);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
interface IVaultFactory {
event NewVault(address indexed vault, string name, address indexed owner);
event PriceFeedUpdated(address indexed priceFeed);
function setPriceFeed(address _priceFeed) external;
function vaultCount() external view returns (uint256);
function lastVault() external view returns (address);
function firstVault() external view returns (address);
function nextVault(address _vault) external view returns (address);
function prevVault(address _vault) external view returns (address);
function liquidationRouter() external view returns (address);
function MAX_TOKENS_PER_VAULT() external view returns (uint256);
function priceFeed() external view returns (address);
function transferVaultOwnership(address _vault, address _newOwner) external;
function createVault(string memory _name) external returns (address);
function addCollateralNative(address _vault) external payable;
function removeCollateralNative(
address _vault,
uint256 _amount,
address _to
) external;
function addCollateral(
address _vault,
address _collateral,
uint256 _amount
) external;
function removeCollateral(
address _vault,
address _collateral,
uint256 _amount,
address _to
) external;
function borrow(address _vault, uint256 _amount, address _to) external;
function distributeBadDebt(address _vault, uint256 _amount) external;
function closeVault(address _vault) external;
function repay(address _vault, uint256 _amount) external;
function redeem(
address _vault,
address _collateral,
uint256 _collateralAmount,
address _to
) external;
function liquidate(address _vault) external;
function isLiquidatable(address _vault) external view returns (bool);
function isReedemable(
address _vault,
address _collateral
) external view returns (bool);
function containsVault(address _vault) external view returns (bool);
function stable() external view returns (address);
function isCollateralSupported(
address _collateral
) external view returns (bool);
function vaultsByOwnerLength(
address _owner
) external view returns (uint256);
function redemptionHealthFactorLimit() external view returns (uint256);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
interface IVaultFactoryConfig {
event PriceFeedUpdated(address indexed priceFeed);
event MaxTokensPerVaultUpdated(
uint256 oldMaxTokensPerVault,
uint256 newMaxTokensPerVault
);
event RedemptionRateUpdated(
uint256 oldRedemptionRate,
uint256 newRedemptionRate
);
event BorrowRateUpdated(uint256 oldBorrowRate, uint256 newBorrowRate);
event RedemptionHealthFactorLimitUpdated(
uint256 oldRedemptionHealthFactorLimit,
uint256 newRedemptionHealthFactorLimit
);
function setMaxTokensPerVault(uint256 _maxTokensPerVault) external;
function setPriceFeed(address _priceFeed) external;
function setRedemptionRate(uint256 _redemptionRate) external;
function setBorrowRate(uint256 _borrowRate) external;
function setRedemptionHealthFactorLimit(
uint256 _redemptionHealthFactorLimit
) external;
function setBorrowFeeRecipient(address _borrowFeeRecipient) external;
function setRedemptionFeeRecipient(
address _redemptionFeeRecipient
) external;
function priceFeed() external view returns (address);
function MAX_TOKENS_PER_VAULT() external view returns (uint256);
function redemptionRate() external view returns (uint256);
function borrowRate() external view returns (uint256);
function redemptionHealthFactorLimit() external view returns (uint256);
function borrowFeeRecipient() external view returns (address);
function redemptionFeeRecipient() external view returns (address);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
/**
* @title Constants
* @dev This contract defines various constants used within the system.
*/
contract Constants {
// Precision used for decimal calculations
uint256 public constant DECIMAL_PRECISION = 1e18;
// Reserve required for liquidation purposes
uint256 public constant LIQUIDATION_RESERVE = 1e18;
// Maximum value for uint256
uint256 public constant MAX_INT = 2 ** 256 - 1;
// Constants for percentage calculations
uint256 public constant PERCENT = (DECIMAL_PRECISION * 1) / 100; // Represents 1%
uint256 public constant PERCENT10 = PERCENT * 10; // Represents 10%
uint256 public constant PERCENT_05 = PERCENT / 2; // Represents 0.5%
// Maximum borrowing and redemption rates
uint256 public constant MAX_BORROWING_RATE = (DECIMAL_PRECISION * 5) / 100; // Represents 5%
uint256 public constant MAX_REDEMPTION_RATE =
(DECIMAL_PRECISION * 10) / 100; // Represents 10%
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
/**
* @title LinkedAddressList
* @dev Library implementing a linked list structure to store and operate sorted Troves.
*/
library LinkedAddressList {
struct EntryLink {
address prev;
address next;
}
struct List {
address _last;
address _first;
uint256 _size;
mapping(address => EntryLink) _values;
}
/**
* @dev Adds an element to the linked list.
* @param _list The storage pointer to the linked list.
* @param _element The element to be added.
* @param _reference The reference element to determine the position for addition.
* @param _before A boolean indicating whether to add the element before the reference.
* @return A boolean indicating the success of the addition.
*/
function add(
List storage _list,
address _element,
address _reference,
bool _before
) internal returns (bool) {
require(
_reference == address(0x0) ||
_list._values[_reference].next != address(0x0),
'79d3d _ref neither valid nor 0x'
);
// Element must not exist to be added
EntryLink storage element_values = _list._values[_element];
if (element_values.prev == address(0x0)) {
if (_list._last == address(0x0)) {
// If the list is empty, set the element as both first and last
element_values.prev = _element;
element_values.next = _element;
_list._first = _element;
_list._last = _element;
} else {
if (
_before &&
(_reference == address(0x0) || _reference == _list._first)
) {
// Adding the element as the first element
address first = _list._first;
_list._values[first].prev = _element;
element_values.prev = _element;
element_values.next = first;
_list._first = _element;
} else if (
!_before &&
(_reference == address(0x0) || _reference == _list._last)
) {
// Adding the element as the last element
address last = _list._last;
_list._values[last].next = _element;
element_values.prev = last;
element_values.next = _element;
_list._last = _element;
} else {
// Inserting the element between two elements
EntryLink memory ref = _list._values[_reference];
if (_before) {
element_values.prev = ref.prev;
element_values.next = _reference;
_list._values[_reference].prev = _element;
_list._values[ref.prev].next = _element;
} else {
element_values.prev = _reference;
element_values.next = ref.next;
_list._values[_reference].next = _element;
_list._values[ref.next].prev = _element;
}
}
}
_list._size = _list._size + 1;
return true;
}
return false;
}
/**
* @dev Removes an element from the linked list.
* @param _list The storage pointer to the linked list.
* @param _element The element to be removed.
* @return A boolean indicating the success of the removal.
*/
function remove(
List storage _list,
address _element
) internal returns (bool) {
EntryLink memory element_values = _list._values[_element];
if (element_values.next != address(0x0)) {
if (_element == _list._last && _element == _list._first) {
// Removing the last and only element in the list
delete _list._last;
delete _list._first;
} else if (_element == _list._first) {
// Removing the first element
address next = element_values.next;
_list._values[next].prev = next;
_list._first = next;
} else if (_element == _list._last) {
// Removing the last element
address new_list_last = element_values.prev;
_list._last = new_list_last;
_list._values[new_list_last].next = new_list_last;
} else {
// Removing an element in between two other elements
address next = element_values.next;
address prev = element_values.prev;
_list._values[next].prev = prev;
_list._values[prev].next = next;
}
// Delete the element itself
delete _list._values[_element];
_list._size = _list._size - 1;
return true;
}
return false;
}
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_vaultOwner","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"contract IVaultExtraSettings","name":"_vaultExtraSettings","type":"address"},{"internalType":"contract ISmartVaultProxy","name":"_smartVaultProxy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collateral","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalAmount","type":"uint256"}],"name":"CollateralAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collateral","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stableAmountUsed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feePaid","type":"uint256"}],"name":"CollateralRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collateral","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalAmount","type":"uint256"}],"name":"CollateralRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalDebt","type":"uint256"}],"name":"DebtAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalDebt","type":"uint256"}],"name":"DebtRepaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bytes4","name":"funcSignature","type":"bytes4"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Executed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsClaimmed","type":"event"},{"inputs":[],"name":"DECIMAL_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIQUIDATION_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BORROWING_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_INT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_REDEMPTION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT10","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_05","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addBadDebt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collateral","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"addOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"borrow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"borrowable","outputs":[{"internalType":"uint256","name":"_maxBorrowable","type":"uint256"},{"internalType":"uint256","name":"_borrowable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collateral","type":"address"},{"internalType":"uint256","name":"_diffAmount","type":"uint256"},{"internalType":"bool","name":"_isAdd","type":"bool"},{"internalType":"bool","name":"_useMlr","type":"bool"}],"name":"borrowableWithDiff","outputs":[{"internalType":"uint256","name":"_maxBorrowable","type":"uint256"},{"internalType":"uint256","name":"_borrowable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collateral","type":"address"},{"internalType":"uint256","name":"_collateralAmount","type":"uint256"}],"name":"calcRedeem","outputs":[{"internalType":"uint256","name":"_stableAmountNeeded","type":"uint256"},{"internalType":"uint256","name":"_redemptionFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"collateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"collateralAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collaterals","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collateralsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collateral","type":"address"}],"name":"containsCollateral","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_targets","type":"address[]"},{"internalType":"bytes4[]","name":"_signatures","type":"bytes4[]"},{"internalType":"bytes[]","name":"_data","type":"bytes[]"},{"internalType":"address[]","name":"_claimRewards","type":"address[]"}],"name":"executeBatch","outputs":[{"internalType":"bytes[]","name":"_results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_useMlr","type":"bool"}],"name":"healthFactor","outputs":[{"internalType":"uint256","name":"_healthFactor","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidate","outputs":[{"internalType":"uint256","name":"_forgivenDebt","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newDebt","type":"uint256"},{"internalType":"bool","name":"_useMlr","type":"bool"}],"name":"newHealthFactor","outputs":[{"internalType":"uint256","name":"_newHealthFactor","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"operatorAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_collateral","type":"address"},{"internalType":"uint256","name":"_collateralAmount","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"_debtRepaid","type":"uint256"},{"internalType":"uint256","name":"_feeCollected","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collateral","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"removeCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"removeOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"repay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"smartVaultProxy","outputs":[{"internalType":"contract ISmartVaultProxy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stable","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferVaultOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultExtraSettings","outputs":[{"internalType":"contract IVaultExtraSettings","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x60c060405234801561001057600080fd5b506040516143cb3803806143cb83398101604081905261002f916102b5565b6001600160a01b03841661007d5760405162461bcd60e51b815260206004820152601060248201526f07661756c742d6f776e65722d69732d360841b60448201526064015b60405180910390fd5b60008351116100be5760405162461bcd60e51b815260206004820152600d60248201526c6e616d652d69732d656d70747960981b6044820152606401610074565b6001600160a01b0385166101035760405162461bcd60e51b815260206004820152600c60248201526b0666163746f72792d69732d360a41b6044820152606401610074565b6001600160a01b0382166101595760405162461bcd60e51b815260206004820152601960248201527f7661756c742d65787472612d73657474696e67732d69732d30000000000000006044820152606401610074565b6001600160a01b0381166101a25760405162461bcd60e51b815260206004820152601060248201526f07661756c742d70726f78792d69732d360841b6044820152606401610074565b6001600160a01b0385811660a0819052600080546001600160a01b03191692871692909217909155604080516322be3de160e01b815290516322be3de1916004808201926020929091908290030181865afa158015610205573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022991906103c7565b6001600160a01b031660805260016102418482610476565b50600680546001600160a01b039384166001600160a01b0319918216179091556007805492909316911617905550610535915050565b6001600160a01b038116811461028c57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b80516102b081610277565b919050565b600080600080600060a086880312156102cd57600080fd5b85516102d881610277565b809550506020808701516102eb81610277565b60408801519095506001600160401b038082111561030857600080fd5b818901915089601f83011261031c57600080fd5b81518181111561032e5761032e61028f565b604051601f8201601f19908116603f011681019083821181831017156103565761035661028f565b816040528281528c8684870101111561036e57600080fd5b600093505b828410156103905784840186015181850187015292850192610373565b60008684830101528098505050505050506103ad606087016102a5565b91506103bb608087016102a5565b90509295509295909350565b6000602082840312156103d957600080fd5b81516103e481610277565b9392505050565b600181811c908216806103ff57607f821691505b60208210810361041f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610471576000816000526020600020601f850160051c8101602086101561044e5750805b601f850160051c820191505b8181101561046d5782815560010161045a565b5050505b505050565b81516001600160401b0381111561048f5761048f61028f565b6104a38161049d84546103eb565b84610425565b602080601f8311600181146104d857600084156104c05750858301515b600019600386901b1c1916600185901b17855561046d565b600085815260208120601f198616915b82811015610507578886015182559484019460019091019084016104e8565b50858210156105255787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051613df36105d86000396000818161057b015281816106fb015281816108bb01528181610c0d01528181610ce401528181610e4201528181610ed9015281816110dc015281816111ed015281816114e8015281816118da015281816119d401528181611b7601528181611c55015281816121a4015281816123fc015281816125ae0152818161275e0152612bc4015260006103940152613df36000f3fe608060405234801561001057600080fd5b50600436106102d35760003560e01c80636bb6179411610186578063aceb2d04116100e3578063c45a015511610097578063e071c0ca11610071578063e071c0ca146105c3578063e99a6ac7146105d6578063ffa1ad74146105de57600080fd5b8063c45a015514610576578063c47f00271461059d578063c5ebeaec146105b057600080fd5b8063b85a8b20116100c8578063b85a8b2014610548578063b891126714610550578063c3f7e0b71461056357600080fd5b8063aceb2d0414610538578063ad09014d1461054057600080fd5b80639870d7fe1161013a578063a5fdc5de1161011f578063a5fdc5de146104fd578063abdc55411461051d578063ac8a584a1461052557600080fd5b80639870d7fe146104ea578063a20baee6146104db57600080fd5b80636d75b9ee1161016b5780636d75b9ee146104b55780638a1bcd77146104c8578063923c1eec146104db57600080fd5b80636bb61794146104825780636d70f7ae146104a257600080fd5b806329ad2fb2116102345780634ba2ad45116101e85780634bfc894d116101cd5780634bfc894d146104395780635322b8161461045c5780636b5bc9941461046f57600080fd5b80634ba2ad45146104295780634bb970421461043157600080fd5b8063371fd8e611610219578063371fd8e6146103ec5780633879b0c5146104015780634113e5ca1461041457600080fd5b806329ad2fb2146103d157806337152dad146103d957600080fd5b80631f52692b1161028b57806322be3de11161027057806322be3de11461038f57806326142335146103b657806328a07025146103c957600080fd5b80631f52692b146103515780631f6656461461037c57600080fd5b806309d3655d116102bc57806309d3655d1461030d5780630dca59c1146103205780631e9a69501461032957600080fd5b806306fdde03146102d8578063098d3228146102f6575b600080fd5b6102e061061a565b6040516102ed9190613475565b60405180910390f35b6102ff60001981565b6040519081526020016102ed565b6102ff61031b366004613499565b6106a8565b6102ff60095481565b61033c6103373660046134de565b6106f5565b604080519283526020830191909152016102ed565b600054610364906001600160a01b031681565b6040516001600160a01b0390911681526020016102ed565b61036461038a36600461350a565b610bee565b6103647f000000000000000000000000000000000000000000000000000000000000000081565b6103646103c436600461350a565b610bfb565b6102ff610c08565b6102ff6110c8565b600654610364906001600160a01b031681565b6103ff6103fa36600461350a565b6110d9565b005b6103ff61040f366004613523565b6111ea565b61041c611401565b6040516102ed9190613565565b6102ff6114aa565b6102ff6114b6565b61044c6104473660046135b2565b6114d8565b60405190151581526020016102ed565b600754610364906001600160a01b031681565b6103ff61047d36600461350a565b6114e5565b61049561049036600461379f565b6115db565b6040516102ed91906138b7565b61044c6104b03660046135b2565b6118ca565b6103ff6104c33660046134de565b6118d7565b61033c6104d636600461391b565b611b32565b6102ff670de0b6b3a764000081565b6103ff6104f83660046135b2565b611fd6565b6102ff61050b3660046135b2565b60086020526000908152604090205481565b6102ff612081565b6103ff6105333660046135b2565b612096565b6102ff61213d565b6102ff61215e565b6102ff612188565b61033c61055e3660046134de565b61219d565b6102ff61057136600461396e565b6124a9565b6103647f000000000000000000000000000000000000000000000000000000000000000081565b6103ff6105ab36600461398b565b6124f8565b6103ff6105be36600461350a565b6125ab565b6103ff6105d13660046135b2565b61275b565b61033c6127fc565b6102e06040518060400160405280600581526020017f312e332e3000000000000000000000000000000000000000000000000000000081525081565b60018054610627906139d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610653906139d4565b80156106a05780601f10610675576101008083540402835291602001916106a0565b820191906000526020600020905b81548152906001019060200180831161068357829003601f168201915b505050505081565b6000826000036106bb57506000196106ef565b60006106cb600080600086611b32565b509050836106e1670de0b6b3a764000083613a1e565b6106eb9190613a35565b9150505b92915050565b600080337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146107645760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b60448201526064015b60405180910390fd5b6001600160a01b0384166107ac5760405162461bcd60e51b815260206004820152600f60248201526e0636f6c6c61746572616c2d69732d3608c1b604482015260640161075b565b600083116107ea5760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b6107f5600285612816565b6108415760405162461bcd60e51b815260206004820152601460248201527f636f6c6c61746572616c2d6e6f742d6164646564000000000000000000000000604482015260640161075b565b6001600160a01b0384166000908152600860205260409020548311156108a95760405162461bcd60e51b815260206004820152601560248201527f6e6f742d656e6f7567682d636f6c6c61746572616c0000000000000000000000604482015260640161075b565b60006108b560016124a9565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c3971f656040518163ffffffff1660e01b8152600401602060405180830381865afa158015610917573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093b9190613a57565b90508082106109b15760405162461bcd60e51b8152602060048201526024808201527f6865616c74682d666163746f722d61626f76652d726564656d7074696f6e2d6c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161075b565b600080600660009054906101000a90046001600160a01b03166001600160a01b0316632e85b5126040518163ffffffff1660e01b8152600401606060405180830381865afa158015610a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2b9190613a70565b506001600160a01b038a16600090815260086020526040812080549395509193508992610a59908490613a9e565b90915550610a699050888861219d565b6009549197509550821015610aef576000670de0b6b3a764000082600954610a919190613a1e565b610a9b9190613a35565b905080871115610aed5760405162461bcd60e51b815260206004820152601860248201527f72656465656d61626c652d646562742d65786365656465640000000000000000604482015260640161075b565b505b8560096000828254610b019190613a9e565b90915550506001600160a01b0388166000908152600860205260408120549003610b3257610b30600289612838565b505b610b466001600160a01b038916338961284d565b6001600160a01b0388166000818152600860209081526040918290205482518b815291820152908101889052606081018790527fe3c5362354987ae7844588482f3912d58e2cb3ffa7d04a1d3025c99fa996d5259060800160405180910390a26009546040805188815260208101929092527f0d4979b0859a1951f8ed7cbe3b1994e740552588f27ba02ca0f8f1ddcad16e0c910160405180910390a1505050509250929050565b60006106ef6002836128e3565b60006106ef6004836128e3565b6000337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610c715760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b670de0b6b3a7640000610c8460016124a9565b10610cd15760405162461bcd60e51b815260206004820152601a60248201527f6c69717569646174696f6e2d666163746f722d61626f76652d31000000000000604482015260640161075b565b60006009549050600060098190555060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663679fda706040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d649190613ab1565b905060005b610d7360026128ef565b811015610ff4576000610d876002836128e3565b6001600160a01b0381166000818152600860205260408082205490516370a0823160e01b8152306004820152939450929091906370a0823190602401602060405180830381865afa158015610de0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e049190613a57565b905081811015610e12578091505b600060086000856001600160a01b03166001600160a01b0316815260200190815260200160002081905550610ed47f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663679fda706040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec29190613ab1565b6001600160a01b0385169060006128f9565b610f6a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663679fda706040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f599190613ab1565b6001600160a01b03851690846128f9565b6040517fb7017b910000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526024820184905286169063b7017b9190604401600060405180830381600087803b158015610fcd57600080fd5b505af1158015610fe1573d6000803e3d6000fd5b505060019095019450610d699350505050565b506040517f2fb04272000000000000000000000000000000000000000000000000000000008152306004820152602481018390526001600160a01b03821690632fb0427290604401600060405180830381600087803b15801561105657600080fd5b505af115801561106a573d6000803e3d6000fd5b50505050806001600160a01b031663a0c03a366040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156110a957600080fd5b505af11580156110bd573d6000803e3d6000fd5b509395945050505050565b60006110d460026128ef565b905090565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146111405760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b6009548111156111925760405162461bcd60e51b815260206004820152601360248201527f616d6f756e742d657863656564732d6465627400000000000000000000000000604482015260640161075b565b80600960008282546111a49190613a9e565b90915550506009546040805183815260208101929092527f0d4979b0859a1951f8ed7cbe3b1994e740552588f27ba02ca0f8f1ddcad16e0c91015b60405180910390a150565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146112515760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b6001600160a01b0383166112995760405162461bcd60e51b815260206004820152600f60248201526e0636f6c6c61746572616c2d69732d3608c1b604482015260640161075b565b600082116112d75760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b6001600160a01b038316600090815260086020526040812080548492906112ff908490613a9e565b90915550506001600160a01b03831660009081526008602052604081205490036113305761132e600284612838565b505b600061133c60006124a9565b9050670de0b6b3a76400008110156113965760405162461bcd60e51b815260206004820152601560248201527f6865616c74682d666163746f722d62656c6f772d310000000000000000000000604482015260640161075b565b6113aa6001600160a01b038516838561284d565b6001600160a01b038416600081815260086020908152604091829020548251878152918201527f47e1336b6fdb5f42c3a1d28b558fa98786d820c3705d726358dcc8e63a401eef910160405180910390a250505050565b6060600061140f60026128ef565b67ffffffffffffffff811115611427576114276135cf565b604051908082528060200260200182016040528015611450578160200160208202803683370190505b50905060005b61146060026128ef565b8110156114a4576114726002826128e3565b82828151811061148457611484613ace565b6001600160a01b0390921660209283029190910190910152600101611456565b50919050565b60006110d460046128ef565b60646114cb670de0b6b3a7640000600a613a1e565b6114d59190613a35565b81565b60006106ef600283612816565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461154c5760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b6000811161158a5760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b806009600082825461159c9190613ae4565b90915550506009546040805183815260208101929092527f28c388e35418553e43dc360d4b6b01207242898c8e48fb1a12d9073c0579be6c91016111df565b6000546060906001600160a01b0316336001600160a01b0316146116345760405162461bcd60e51b815260206004820152601060248201526f37b7363c96bb30bab63a16b7bbb732b960811b604482015260640161075b565b60008551116116855760405162461bcd60e51b815260206004820152601d60248201527f546172676574732061727261792063616e6e6f7420626520656d707479000000604482015260640161075b565b60008451116116d65760405162461bcd60e51b815260206004820181905260248201527f5369676e6174757265732061727261792063616e6e6f7420626520656d707479604482015260640161075b565b60008351116117275760405162461bcd60e51b815260206004820152601a60248201527f446174612061727261792063616e6e6f7420626520656d707479000000000000604482015260640161075b565b83518551148015611739575082518551145b6117ab5760405162461bcd60e51b815260206004820152603960248201527f4c656e67746873206f6620746172676574732c2066756e6374696f6e732c206160448201527f6e64206461746120617272617973206d757374206d6174636800000000000000606482015260840161075b565b845167ffffffffffffffff8111156117c5576117c56135cf565b6040519080825280602002602001820160405280156117f857816020015b60608152602001906001900390816117e35790505b50905060005b85518110156118825761185d86828151811061181c5761181c613ace565b602002602001015186838151811061183657611836613ace565b602002602001015186848151811061185057611850613ace565b6020026020010151612a47565b82828151811061186f5761186f613ace565b60209081029190910101526001016117fe565b508151156118c25760005b82518110156118c0576118b88382815181106118ab576118ab613ace565b6020026020010151612ba5565b60010161188d565b505b949350505050565b60006106ef600483612816565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161461193e5760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b6001600160a01b0382166119865760405162461bcd60e51b815260206004820152600f60248201526e0636f6c6c61746572616c2d69732d3608c1b604482015260640161075b565b600081116119c45760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b6119cf600283612fdd565b5060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ffbfb8ad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a549190613a57565b905080611a6160026128ef565b1115611aaf5760405162461bcd60e51b815260206004820152601260248201527f6d61782d746f6b656e732d726561636865640000000000000000000000000000604482015260640161075b565b6001600160a01b03831660009081526008602052604081208054849290611ad7908490613ae4565b90915550506001600160a01b038316600081815260086020908152604091829020548251868152918201527f11f8990ac38271f23dea447d5728e9914fca7cea2edda43af6c43c415f8bc30b910160405180910390a2505050565b6001600160a01b0384166000818152600860205260408120549091829190829015611c5157604051637d35e97760e11b81526001600160a01b0389811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063fa6bd2ee90602401602060405180830381865afa158015611bbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be19190613af7565b611c2d5760405162461bcd60e51b815260206004820152601860248201527f636f6c6c61746572616c2d6e6f742d737570706f727465640000000000000000604482015260640161075b565b8515611c4457611c3d8783613ae4565b9150611c51565b611c4e8783613a9e565b91505b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663741bef1a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611cb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd59190613ab1565b905060005b611ce460026128ef565b811015611fa7576000611cf86002836128e3565b905060008b6001600160a01b0316826001600160a01b031614611d33576001600160a01b038216600090815260086020526040902054611d35565b855b6040516384ba3f6960e01b81526001600160a01b0384811660048301529192506000918616906384ba3f6990602401602060405180830381865afa158015611d81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da59190613a57565b905060008a611e36576040517faa41911f0000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015287169063aa41911f90602401602060405180830381865afa158015611e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e319190613a57565b611eb9565b6040517f75b785440000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528716906375b7854490602401602060405180830381865afa158015611e95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb99190613a57565b604051636a24d41960e11b81526001600160a01b03868116600483015291925060009188169063d449a83290602401602060405180830381865afa158015611f05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f299190613a57565b611f34906012613a9e565b611f3f90600a613bf8565b611f499085613a1e565b90506000670de0b6b3a7640000611f608584613a1e565b611f6a9190613a35565b905082611f7f670de0b6b3a764000083613a1e565b611f899190613a35565b611f93908a613ae4565b98505060019095019450611cda9350505050565b50816009548311611fb9576000611fc6565b600954611fc69084613a9e565b9450945050505094509492505050565b6000546001600160a01b0316336001600160a01b03161461202c5760405162461bcd60e51b815260206004820152601060248201526f37b7363c96bb30bab63a16b7bbb732b960811b604482015260640161075b565b6001600160a01b0381166120725760405162461bcd60e51b815260206004820152600d60248201526c06f70657261746f722d69732d3609c1b604482015260640161075b565b61207d600482612fdd565b5050565b60646114cb670de0b6b3a76400006005613a1e565b6000546001600160a01b0316336001600160a01b0316146120ec5760405162461bcd60e51b815260206004820152601060248201526f37b7363c96bb30bab63a16b7bbb732b960811b604482015260640161075b565b6001600160a01b0381166121325760405162461bcd60e51b815260206004820152600d60248201526c06f70657261746f722d69732d3609c1b604482015260640161075b565b61207d600482612838565b60026064612154670de0b6b3a76400006001613a1e565b6114cb9190613a35565b6064612173670de0b6b3a76400006001613a1e565b61217d9190613a35565b6114d590600a613a1e565b60646114cb670de0b6b3a76400006001613a1e565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663741bef1a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612200573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122249190613ab1565b6040516384ba3f6960e01b81526001600160a01b0387811660048301529192506000918316906384ba3f6990602401602060405180830381865afa158015612270573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122949190613a57565b604051636a24d41960e11b81526001600160a01b03888116600483015291925060009184169063d449a83290602401602060405180830381865afa1580156122e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123049190613a57565b61230f906012613a9e565b61231a90600a613bf8565b6123249087613a1e565b9050670de0b6b3a76400006123398383613a1e565b6123439190613a35565b94506000600660009054906101000a90046001600160a01b03166001600160a01b0316632e85b5126040518163ffffffff1660e01b8152600401606060405180830381865afa15801561239a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123be9190613a70565b925050811590506123f8576000670de0b6b3a76400006123de8389613a1e565b6123e89190613a35565b90506123f48188613ae4565b9650505b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663540385a36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247c9190613a57565b9050670de0b6b3a76400006124918289613a1e565b61249b9190613a35565b955050505050509250929050565b60006009546000036124be5750600019919050565b60006124ce600080600086611b32565b506009549091506124e7670de0b6b3a764000083613a1e565b6124f19190613a35565b9392505050565b6000546001600160a01b0316336001600160a01b03161461254e5760405162461bcd60e51b815260206004820152601060248201526f37b7363c96bb30bab63a16b7bbb732b960811b604482015260640161075b565b600081511161259f5760405162461bcd60e51b815260206004820152600d60248201527f6e616d652d69732d656d70747900000000000000000000000000000000000000604482015260640161075b565b600161207d8282613c54565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146126125760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b600081116126505760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b60008061265b6127fc565b91509150808311156126af5760405162461bcd60e51b815260206004820152601560248201527f6e6f742d656e6f7567682d626f72726f7761626c650000000000000000000000604482015260640161075b565b82600960008282546126c19190613ae4565b90915550506009548210156127185760405162461bcd60e51b815260206004820152601660248201527f6d61782d626f72726f7761626c652d7265616368656400000000000000000000604482015260640161075b565b6009546040805185815260208101929092527f28c388e35418553e43dc360d4b6b01207242898c8e48fb1a12d9073c0579be6c91015b60405180910390a1505050565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146127c25760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008061280d600080600080611b32565b90939092509050565b6001600160a01b038116600090815260018301602052604081205415156124f1565b60006124f1836001600160a01b038416612ff2565b6040516001600160a01b0383166024820152604481018290526128de9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091526130e5565b505050565b60006124f183836131cd565b60006106ef825490565b80158061298c57506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015612966573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298a9190613a57565b155b6129fe5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161075b565b6040516001600160a01b0383166024820152604481018290526128de9084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401612892565b6007546040517f1c0554ba0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526001600160e01b0319851660248301526060921690631c0554ba906044016020604051808303816000875af1158015612abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae19190613af7565b612b2d5760405162461bcd60e51b815260206004820152601260248201527f696e76616c69642d7065726d697373696f6e0000000000000000000000000000604482015260640161075b565b6001600160a01b038416336001600160a01b03167f31c4071b8001fd53775a86cb32f486ff8827885d3d3dceda92ec6eddaab11b498585604051612b72929190613d14565b60405180910390a36118c2848484604051602001612b91929190613d37565b6040516020818303038152906040526131f7565b604051637d35e97760e11b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063fa6bd2ee90602401602060405180830381865afa158015612c0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c2f9190613af7565b15612c7c5760405162461bcd60e51b815260206004820152601860248201527f63616e742d7472616e736665722d636f6c6c61746572616c0000000000000000604482015260640161075b565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612cc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ce79190613a57565b90506000612710600760009054906101000a90046001600160a01b03166001600160a01b0316638b4242676040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d659190613d67565b612d739061ffff1684613a1e565b612d7d9190613a35565b6000549091506001600160a01b038085169163a9059cbb9116612da08486613a9e565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0f9190613af7565b612e5b5760405162461bcd60e51b815260206004820152601360248201527f7265776172642d636c61696d2d6661696c656400000000000000000000000000604482015260640161075b565b826001600160a01b031663a9059cbb600760009054906101000a90046001600160a01b03166001600160a01b031663afffd5b76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ee19190613ab1565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015612f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f529190613af7565b612f9e5760405162461bcd60e51b815260206004820152601760248201527f7265776172642d6665652d636c61696d2d6661696c6564000000000000000000604482015260640161075b565b604080516001600160a01b0385168152602081018490527f83252577b1c20aae4d2d7cd776456f505dd45bdb3be9a8aee6934bd71dc4416f910161274e565b60006124f1836001600160a01b03841661323b565b600081815260018301602052604081205480156130db576000613016600183613a9e565b855490915060009061302a90600190613a9e565b905081811461308f57600086600001828154811061304a5761304a613ace565b906000526020600020015490508087600001848154811061306d5761306d613ace565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806130a0576130a0613d8b565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106ef565b60009150506106ef565b600061313a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661328a9092919063ffffffff16565b905080516000148061315b57508080602001905181019061315b9190613af7565b6128de5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161075b565b60008260000182815481106131e4576131e4613ace565b9060005260206000200154905092915050565b60606124f1838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250613295565b6000818152600183016020526040812054613282575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106ef565b5060006106ef565b60606118c284846000855b60608247101561330d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161075b565b600080866001600160a01b031685876040516133299190613da1565b60006040518083038185875af1925050503d8060008114613366576040519150601f19603f3d011682016040523d82523d6000602084013e61336b565b606091505b509150915061337c87838387613387565b979650505050505050565b606083156133f65782516000036133ef576001600160a01b0385163b6133ef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161075b565b50816118c2565b6118c2838381511561340b5781518083602001fd5b8060405162461bcd60e51b815260040161075b9190613475565b60005b83811015613440578181015183820152602001613428565b50506000910152565b60008151808452613461816020860160208601613425565b601f01601f19169290920160200192915050565b6020815260006124f16020830184613449565b801515811461349657600080fd5b50565b600080604083850312156134ac57600080fd5b8235915060208301356134be81613488565b809150509250929050565b6001600160a01b038116811461349657600080fd5b600080604083850312156134f157600080fd5b82356134fc816134c9565b946020939093013593505050565b60006020828403121561351c57600080fd5b5035919050565b60008060006060848603121561353857600080fd5b8335613543816134c9565b925060208401359150604084013561355a816134c9565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b818110156135a65783516001600160a01b031683529284019291840191600101613581565b50909695505050505050565b6000602082840312156135c457600080fd5b81356124f1816134c9565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561360e5761360e6135cf565b604052919050565b600067ffffffffffffffff821115613630576136306135cf565b5060051b60200190565b600082601f83011261364b57600080fd5b8135602061366061365b83613616565b6135e5565b8083825260208201915060208460051b87010193508684111561368257600080fd5b602086015b848110156136a757803561369a816134c9565b8352918301918301613687565b509695505050505050565b600067ffffffffffffffff8311156136cc576136cc6135cf565b6136df601f8401601f19166020016135e5565b90508281528383830111156136f357600080fd5b828260208301376000602084830101529392505050565b600082601f83011261371b57600080fd5b8135602061372b61365b83613616565b82815260059290921b8401810191818101908684111561374a57600080fd5b8286015b848110156136a757803567ffffffffffffffff81111561376e5760008081fd5b8701603f810189136137805760008081fd5b6137918986830135604084016136b2565b84525091830191830161374e565b600080600080608085870312156137b557600080fd5b843567ffffffffffffffff808211156137cd57600080fd5b6137d98883890161363a565b95506020915081870135818111156137f057600080fd5b8701601f8101891361380157600080fd5b803561380f61365b82613616565b81815260059190911b8201840190848101908b83111561382e57600080fd5b928501925b828410156138635783356001600160e01b0319811681146138545760008081fd5b82529285019290850190613833565b9750505050604087013591508082111561387c57600080fd5b6138888883890161370a565b9350606087013591508082111561389e57600080fd5b506138ab8782880161363a565b91505092959194509250565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561390e57603f198886030184526138fc858351613449565b945092850192908501906001016138e0565b5092979650505050505050565b6000806000806080858703121561393157600080fd5b843561393c816134c9565b935060208501359250604085013561395381613488565b9150606085013561396381613488565b939692955090935050565b60006020828403121561398057600080fd5b81356124f181613488565b60006020828403121561399d57600080fd5b813567ffffffffffffffff8111156139b457600080fd5b8201601f810184136139c557600080fd5b6106eb848235602084016136b2565b600181811c908216806139e857607f821691505b6020821081036114a457634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106ef576106ef613a08565b600082613a5257634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613a6957600080fd5b5051919050565b600080600060608486031215613a8557600080fd5b8351925060208401519150604084015190509250925092565b818103818111156106ef576106ef613a08565b600060208284031215613ac357600080fd5b81516124f1816134c9565b634e487b7160e01b600052603260045260246000fd5b808201808211156106ef576106ef613a08565b600060208284031215613b0957600080fd5b81516124f181613488565b600181815b80851115613b4f578160001904821115613b3557613b35613a08565b80851615613b4257918102915b93841c9390800290613b19565b509250929050565b600082613b66575060016106ef565b81613b73575060006106ef565b8160018114613b895760028114613b9357613baf565b60019150506106ef565b60ff841115613ba457613ba4613a08565b50506001821b6106ef565b5060208310610133831016604e8410600b8410161715613bd2575081810a6106ef565b613bdc8383613b14565b8060001904821115613bf057613bf0613a08565b029392505050565b60006124f18383613b57565b601f8211156128de576000816000526020600020601f850160051c81016020861015613c2d5750805b601f850160051c820191505b81811015613c4c57828155600101613c39565b505050505050565b815167ffffffffffffffff811115613c6e57613c6e6135cf565b613c8281613c7c84546139d4565b84613c04565b602080601f831160018114613cb75760008415613c9f5750858301515b600019600386901b1c1916600185901b178555613c4c565b600085815260208120601f198616915b82811015613ce657888601518255948401946001909101908401613cc7565b5085821015613d045787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160e01b0319831681526040602082015260006118c26040830184613449565b6001600160e01b03198316815260008251613d59816004850160208701613425565b919091016004019392505050565b600060208284031215613d7957600080fd5b815161ffff811681146124f157600080fd5b634e487b7160e01b600052603160045260246000fd5b60008251613db3818460208701613425565b919091019291505056fea26469706673582212206fdbe611c1794b51f7094323388f162a416ddaed8f349bf0e34c0aa00e4d38bd64736f6c6343000819003300000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e000000000000000000000000ed35b7bbff1f59e7764d3ef053c75a538d050efa00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000aaac30148e8cfe185d7f04291e95209891db14260000000000000000000000000bece260e09aeb83c7da0d06cc984ffb168f2b1200000000000000000000000000000000000000000000000000000000000000084d795661756c7431000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102d35760003560e01c80636bb6179411610186578063aceb2d04116100e3578063c45a015511610097578063e071c0ca11610071578063e071c0ca146105c3578063e99a6ac7146105d6578063ffa1ad74146105de57600080fd5b8063c45a015514610576578063c47f00271461059d578063c5ebeaec146105b057600080fd5b8063b85a8b20116100c8578063b85a8b2014610548578063b891126714610550578063c3f7e0b71461056357600080fd5b8063aceb2d0414610538578063ad09014d1461054057600080fd5b80639870d7fe1161013a578063a5fdc5de1161011f578063a5fdc5de146104fd578063abdc55411461051d578063ac8a584a1461052557600080fd5b80639870d7fe146104ea578063a20baee6146104db57600080fd5b80636d75b9ee1161016b5780636d75b9ee146104b55780638a1bcd77146104c8578063923c1eec146104db57600080fd5b80636bb61794146104825780636d70f7ae146104a257600080fd5b806329ad2fb2116102345780634ba2ad45116101e85780634bfc894d116101cd5780634bfc894d146104395780635322b8161461045c5780636b5bc9941461046f57600080fd5b80634ba2ad45146104295780634bb970421461043157600080fd5b8063371fd8e611610219578063371fd8e6146103ec5780633879b0c5146104015780634113e5ca1461041457600080fd5b806329ad2fb2146103d157806337152dad146103d957600080fd5b80631f52692b1161028b57806322be3de11161027057806322be3de11461038f57806326142335146103b657806328a07025146103c957600080fd5b80631f52692b146103515780631f6656461461037c57600080fd5b806309d3655d116102bc57806309d3655d1461030d5780630dca59c1146103205780631e9a69501461032957600080fd5b806306fdde03146102d8578063098d3228146102f6575b600080fd5b6102e061061a565b6040516102ed9190613475565b60405180910390f35b6102ff60001981565b6040519081526020016102ed565b6102ff61031b366004613499565b6106a8565b6102ff60095481565b61033c6103373660046134de565b6106f5565b604080519283526020830191909152016102ed565b600054610364906001600160a01b031681565b6040516001600160a01b0390911681526020016102ed565b61036461038a36600461350a565b610bee565b6103647f0000000000000000000000003f817b28da4940f018c6b5c0a11c555ebb1264f981565b6103646103c436600461350a565b610bfb565b6102ff610c08565b6102ff6110c8565b600654610364906001600160a01b031681565b6103ff6103fa36600461350a565b6110d9565b005b6103ff61040f366004613523565b6111ea565b61041c611401565b6040516102ed9190613565565b6102ff6114aa565b6102ff6114b6565b61044c6104473660046135b2565b6114d8565b60405190151581526020016102ed565b600754610364906001600160a01b031681565b6103ff61047d36600461350a565b6114e5565b61049561049036600461379f565b6115db565b6040516102ed91906138b7565b61044c6104b03660046135b2565b6118ca565b6103ff6104c33660046134de565b6118d7565b61033c6104d636600461391b565b611b32565b6102ff670de0b6b3a764000081565b6103ff6104f83660046135b2565b611fd6565b6102ff61050b3660046135b2565b60086020526000908152604090205481565b6102ff612081565b6103ff6105333660046135b2565b612096565b6102ff61213d565b6102ff61215e565b6102ff612188565b61033c61055e3660046134de565b61219d565b6102ff61057136600461396e565b6124a9565b6103647f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e81565b6103ff6105ab36600461398b565b6124f8565b6103ff6105be36600461350a565b6125ab565b6103ff6105d13660046135b2565b61275b565b61033c6127fc565b6102e06040518060400160405280600581526020017f312e332e3000000000000000000000000000000000000000000000000000000081525081565b60018054610627906139d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610653906139d4565b80156106a05780601f10610675576101008083540402835291602001916106a0565b820191906000526020600020905b81548152906001019060200180831161068357829003601f168201915b505050505081565b6000826000036106bb57506000196106ef565b60006106cb600080600086611b32565b509050836106e1670de0b6b3a764000083613a1e565b6106eb9190613a35565b9150505b92915050565b600080337f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b0316146107645760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b60448201526064015b60405180910390fd5b6001600160a01b0384166107ac5760405162461bcd60e51b815260206004820152600f60248201526e0636f6c6c61746572616c2d69732d3608c1b604482015260640161075b565b600083116107ea5760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b6107f5600285612816565b6108415760405162461bcd60e51b815260206004820152601460248201527f636f6c6c61746572616c2d6e6f742d6164646564000000000000000000000000604482015260640161075b565b6001600160a01b0384166000908152600860205260409020548311156108a95760405162461bcd60e51b815260206004820152601560248201527f6e6f742d656e6f7567682d636f6c6c61746572616c0000000000000000000000604482015260640161075b565b60006108b560016124a9565b905060007f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b031663c3971f656040518163ffffffff1660e01b8152600401602060405180830381865afa158015610917573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093b9190613a57565b90508082106109b15760405162461bcd60e51b8152602060048201526024808201527f6865616c74682d666163746f722d61626f76652d726564656d7074696f6e2d6c60448201527f696d697400000000000000000000000000000000000000000000000000000000606482015260840161075b565b600080600660009054906101000a90046001600160a01b03166001600160a01b0316632e85b5126040518163ffffffff1660e01b8152600401606060405180830381865afa158015610a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2b9190613a70565b506001600160a01b038a16600090815260086020526040812080549395509193508992610a59908490613a9e565b90915550610a699050888861219d565b6009549197509550821015610aef576000670de0b6b3a764000082600954610a919190613a1e565b610a9b9190613a35565b905080871115610aed5760405162461bcd60e51b815260206004820152601860248201527f72656465656d61626c652d646562742d65786365656465640000000000000000604482015260640161075b565b505b8560096000828254610b019190613a9e565b90915550506001600160a01b0388166000908152600860205260408120549003610b3257610b30600289612838565b505b610b466001600160a01b038916338961284d565b6001600160a01b0388166000818152600860209081526040918290205482518b815291820152908101889052606081018790527fe3c5362354987ae7844588482f3912d58e2cb3ffa7d04a1d3025c99fa996d5259060800160405180910390a26009546040805188815260208101929092527f0d4979b0859a1951f8ed7cbe3b1994e740552588f27ba02ca0f8f1ddcad16e0c910160405180910390a1505050509250929050565b60006106ef6002836128e3565b60006106ef6004836128e3565b6000337f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b031614610c715760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b670de0b6b3a7640000610c8460016124a9565b10610cd15760405162461bcd60e51b815260206004820152601a60248201527f6c69717569646174696f6e2d666163746f722d61626f76652d31000000000000604482015260640161075b565b60006009549050600060098190555060007f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b031663679fda706040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d649190613ab1565b905060005b610d7360026128ef565b811015610ff4576000610d876002836128e3565b6001600160a01b0381166000818152600860205260408082205490516370a0823160e01b8152306004820152939450929091906370a0823190602401602060405180830381865afa158015610de0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e049190613a57565b905081811015610e12578091505b600060086000856001600160a01b03166001600160a01b0316815260200190815260200160002081905550610ed47f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b031663679fda706040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec29190613ab1565b6001600160a01b0385169060006128f9565b610f6a7f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b031663679fda706040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f599190613ab1565b6001600160a01b03851690846128f9565b6040517fb7017b910000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301526024820184905286169063b7017b9190604401600060405180830381600087803b158015610fcd57600080fd5b505af1158015610fe1573d6000803e3d6000fd5b505060019095019450610d699350505050565b506040517f2fb04272000000000000000000000000000000000000000000000000000000008152306004820152602481018390526001600160a01b03821690632fb0427290604401600060405180830381600087803b15801561105657600080fd5b505af115801561106a573d6000803e3d6000fd5b50505050806001600160a01b031663a0c03a366040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156110a957600080fd5b505af11580156110bd573d6000803e3d6000fd5b509395945050505050565b60006110d460026128ef565b905090565b337f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b0316146111405760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b6009548111156111925760405162461bcd60e51b815260206004820152601360248201527f616d6f756e742d657863656564732d6465627400000000000000000000000000604482015260640161075b565b80600960008282546111a49190613a9e565b90915550506009546040805183815260208101929092527f0d4979b0859a1951f8ed7cbe3b1994e740552588f27ba02ca0f8f1ddcad16e0c91015b60405180910390a150565b337f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b0316146112515760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b6001600160a01b0383166112995760405162461bcd60e51b815260206004820152600f60248201526e0636f6c6c61746572616c2d69732d3608c1b604482015260640161075b565b600082116112d75760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b6001600160a01b038316600090815260086020526040812080548492906112ff908490613a9e565b90915550506001600160a01b03831660009081526008602052604081205490036113305761132e600284612838565b505b600061133c60006124a9565b9050670de0b6b3a76400008110156113965760405162461bcd60e51b815260206004820152601560248201527f6865616c74682d666163746f722d62656c6f772d310000000000000000000000604482015260640161075b565b6113aa6001600160a01b038516838561284d565b6001600160a01b038416600081815260086020908152604091829020548251878152918201527f47e1336b6fdb5f42c3a1d28b558fa98786d820c3705d726358dcc8e63a401eef910160405180910390a250505050565b6060600061140f60026128ef565b67ffffffffffffffff811115611427576114276135cf565b604051908082528060200260200182016040528015611450578160200160208202803683370190505b50905060005b61146060026128ef565b8110156114a4576114726002826128e3565b82828151811061148457611484613ace565b6001600160a01b0390921660209283029190910190910152600101611456565b50919050565b60006110d460046128ef565b60646114cb670de0b6b3a7640000600a613a1e565b6114d59190613a35565b81565b60006106ef600283612816565b337f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b03161461154c5760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b6000811161158a5760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b806009600082825461159c9190613ae4565b90915550506009546040805183815260208101929092527f28c388e35418553e43dc360d4b6b01207242898c8e48fb1a12d9073c0579be6c91016111df565b6000546060906001600160a01b0316336001600160a01b0316146116345760405162461bcd60e51b815260206004820152601060248201526f37b7363c96bb30bab63a16b7bbb732b960811b604482015260640161075b565b60008551116116855760405162461bcd60e51b815260206004820152601d60248201527f546172676574732061727261792063616e6e6f7420626520656d707479000000604482015260640161075b565b60008451116116d65760405162461bcd60e51b815260206004820181905260248201527f5369676e6174757265732061727261792063616e6e6f7420626520656d707479604482015260640161075b565b60008351116117275760405162461bcd60e51b815260206004820152601a60248201527f446174612061727261792063616e6e6f7420626520656d707479000000000000604482015260640161075b565b83518551148015611739575082518551145b6117ab5760405162461bcd60e51b815260206004820152603960248201527f4c656e67746873206f6620746172676574732c2066756e6374696f6e732c206160448201527f6e64206461746120617272617973206d757374206d6174636800000000000000606482015260840161075b565b845167ffffffffffffffff8111156117c5576117c56135cf565b6040519080825280602002602001820160405280156117f857816020015b60608152602001906001900390816117e35790505b50905060005b85518110156118825761185d86828151811061181c5761181c613ace565b602002602001015186838151811061183657611836613ace565b602002602001015186848151811061185057611850613ace565b6020026020010151612a47565b82828151811061186f5761186f613ace565b60209081029190910101526001016117fe565b508151156118c25760005b82518110156118c0576118b88382815181106118ab576118ab613ace565b6020026020010151612ba5565b60010161188d565b505b949350505050565b60006106ef600483612816565b337f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b03161461193e5760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b6001600160a01b0382166119865760405162461bcd60e51b815260206004820152600f60248201526e0636f6c6c61746572616c2d69732d3608c1b604482015260640161075b565b600081116119c45760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b6119cf600283612fdd565b5060007f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b031663ffbfb8ad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a549190613a57565b905080611a6160026128ef565b1115611aaf5760405162461bcd60e51b815260206004820152601260248201527f6d61782d746f6b656e732d726561636865640000000000000000000000000000604482015260640161075b565b6001600160a01b03831660009081526008602052604081208054849290611ad7908490613ae4565b90915550506001600160a01b038316600081815260086020908152604091829020548251868152918201527f11f8990ac38271f23dea447d5728e9914fca7cea2edda43af6c43c415f8bc30b910160405180910390a2505050565b6001600160a01b0384166000818152600860205260408120549091829190829015611c5157604051637d35e97760e11b81526001600160a01b0389811660048301527f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e169063fa6bd2ee90602401602060405180830381865afa158015611bbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be19190613af7565b611c2d5760405162461bcd60e51b815260206004820152601860248201527f636f6c6c61746572616c2d6e6f742d737570706f727465640000000000000000604482015260640161075b565b8515611c4457611c3d8783613ae4565b9150611c51565b611c4e8783613a9e565b91505b60007f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b031663741bef1a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611cb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd59190613ab1565b905060005b611ce460026128ef565b811015611fa7576000611cf86002836128e3565b905060008b6001600160a01b0316826001600160a01b031614611d33576001600160a01b038216600090815260086020526040902054611d35565b855b6040516384ba3f6960e01b81526001600160a01b0384811660048301529192506000918616906384ba3f6990602401602060405180830381865afa158015611d81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da59190613a57565b905060008a611e36576040517faa41911f0000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015287169063aa41911f90602401602060405180830381865afa158015611e0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e319190613a57565b611eb9565b6040517f75b785440000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528716906375b7854490602401602060405180830381865afa158015611e95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb99190613a57565b604051636a24d41960e11b81526001600160a01b03868116600483015291925060009188169063d449a83290602401602060405180830381865afa158015611f05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f299190613a57565b611f34906012613a9e565b611f3f90600a613bf8565b611f499085613a1e565b90506000670de0b6b3a7640000611f608584613a1e565b611f6a9190613a35565b905082611f7f670de0b6b3a764000083613a1e565b611f899190613a35565b611f93908a613ae4565b98505060019095019450611cda9350505050565b50816009548311611fb9576000611fc6565b600954611fc69084613a9e565b9450945050505094509492505050565b6000546001600160a01b0316336001600160a01b03161461202c5760405162461bcd60e51b815260206004820152601060248201526f37b7363c96bb30bab63a16b7bbb732b960811b604482015260640161075b565b6001600160a01b0381166120725760405162461bcd60e51b815260206004820152600d60248201526c06f70657261746f722d69732d3609c1b604482015260640161075b565b61207d600482612fdd565b5050565b60646114cb670de0b6b3a76400006005613a1e565b6000546001600160a01b0316336001600160a01b0316146120ec5760405162461bcd60e51b815260206004820152601060248201526f37b7363c96bb30bab63a16b7bbb732b960811b604482015260640161075b565b6001600160a01b0381166121325760405162461bcd60e51b815260206004820152600d60248201526c06f70657261746f722d69732d3609c1b604482015260640161075b565b61207d600482612838565b60026064612154670de0b6b3a76400006001613a1e565b6114cb9190613a35565b6064612173670de0b6b3a76400006001613a1e565b61217d9190613a35565b6114d590600a613a1e565b60646114cb670de0b6b3a76400006001613a1e565b60008060007f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b031663741bef1a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612200573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122249190613ab1565b6040516384ba3f6960e01b81526001600160a01b0387811660048301529192506000918316906384ba3f6990602401602060405180830381865afa158015612270573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122949190613a57565b604051636a24d41960e11b81526001600160a01b03888116600483015291925060009184169063d449a83290602401602060405180830381865afa1580156122e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123049190613a57565b61230f906012613a9e565b61231a90600a613bf8565b6123249087613a1e565b9050670de0b6b3a76400006123398383613a1e565b6123439190613a35565b94506000600660009054906101000a90046001600160a01b03166001600160a01b0316632e85b5126040518163ffffffff1660e01b8152600401606060405180830381865afa15801561239a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123be9190613a70565b925050811590506123f8576000670de0b6b3a76400006123de8389613a1e565b6123e89190613a35565b90506123f48188613ae4565b9650505b60007f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b031663540385a36040518163ffffffff1660e01b8152600401602060405180830381865afa158015612458573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247c9190613a57565b9050670de0b6b3a76400006124918289613a1e565b61249b9190613a35565b955050505050509250929050565b60006009546000036124be5750600019919050565b60006124ce600080600086611b32565b506009549091506124e7670de0b6b3a764000083613a1e565b6124f19190613a35565b9392505050565b6000546001600160a01b0316336001600160a01b03161461254e5760405162461bcd60e51b815260206004820152601060248201526f37b7363c96bb30bab63a16b7bbb732b960811b604482015260640161075b565b600081511161259f5760405162461bcd60e51b815260206004820152600d60248201527f6e616d652d69732d656d70747900000000000000000000000000000000000000604482015260640161075b565b600161207d8282613c54565b337f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b0316146126125760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b600081116126505760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b604482015260640161075b565b60008061265b6127fc565b91509150808311156126af5760405162461bcd60e51b815260206004820152601560248201527f6e6f742d656e6f7567682d626f72726f7761626c650000000000000000000000604482015260640161075b565b82600960008282546126c19190613ae4565b90915550506009548210156127185760405162461bcd60e51b815260206004820152601660248201527f6d61782d626f72726f7761626c652d7265616368656400000000000000000000604482015260640161075b565b6009546040805185815260208101929092527f28c388e35418553e43dc360d4b6b01207242898c8e48fb1a12d9073c0579be6c91015b60405180910390a1505050565b337f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e6001600160a01b0316146127c25760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c792d666163746f727960a01b604482015260640161075b565b600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008061280d600080600080611b32565b90939092509050565b6001600160a01b038116600090815260018301602052604081205415156124f1565b60006124f1836001600160a01b038416612ff2565b6040516001600160a01b0383166024820152604481018290526128de9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091526130e5565b505050565b60006124f183836131cd565b60006106ef825490565b80158061298c57506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015612966573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298a9190613a57565b155b6129fe5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606482015260840161075b565b6040516001600160a01b0383166024820152604481018290526128de9084907f095ea7b30000000000000000000000000000000000000000000000000000000090606401612892565b6007546040517f1c0554ba0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526001600160e01b0319851660248301526060921690631c0554ba906044016020604051808303816000875af1158015612abd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae19190613af7565b612b2d5760405162461bcd60e51b815260206004820152601260248201527f696e76616c69642d7065726d697373696f6e0000000000000000000000000000604482015260640161075b565b6001600160a01b038416336001600160a01b03167f31c4071b8001fd53775a86cb32f486ff8827885d3d3dceda92ec6eddaab11b498585604051612b72929190613d14565b60405180910390a36118c2848484604051602001612b91929190613d37565b6040516020818303038152906040526131f7565b604051637d35e97760e11b81526001600160a01b0382811660048301527f00000000000000000000000065c6fd9b3a2a892096881e28f07c732ed128893e169063fa6bd2ee90602401602060405180830381865afa158015612c0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c2f9190613af7565b15612c7c5760405162461bcd60e51b815260206004820152601860248201527f63616e742d7472616e736665722d636f6c6c61746572616c0000000000000000604482015260640161075b565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015612cc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ce79190613a57565b90506000612710600760009054906101000a90046001600160a01b03166001600160a01b0316638b4242676040518163ffffffff1660e01b8152600401602060405180830381865afa158015612d41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d659190613d67565b612d739061ffff1684613a1e565b612d7d9190613a35565b6000549091506001600160a01b038085169163a9059cbb9116612da08486613a9e565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015612deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0f9190613af7565b612e5b5760405162461bcd60e51b815260206004820152601360248201527f7265776172642d636c61696d2d6661696c656400000000000000000000000000604482015260640161075b565b826001600160a01b031663a9059cbb600760009054906101000a90046001600160a01b03166001600160a01b031663afffd5b76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ee19190613ab1565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015612f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f529190613af7565b612f9e5760405162461bcd60e51b815260206004820152601760248201527f7265776172642d6665652d636c61696d2d6661696c6564000000000000000000604482015260640161075b565b604080516001600160a01b0385168152602081018490527f83252577b1c20aae4d2d7cd776456f505dd45bdb3be9a8aee6934bd71dc4416f910161274e565b60006124f1836001600160a01b03841661323b565b600081815260018301602052604081205480156130db576000613016600183613a9e565b855490915060009061302a90600190613a9e565b905081811461308f57600086600001828154811061304a5761304a613ace565b906000526020600020015490508087600001848154811061306d5761306d613ace565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806130a0576130a0613d8b565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106ef565b60009150506106ef565b600061313a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661328a9092919063ffffffff16565b905080516000148061315b57508080602001905181019061315b9190613af7565b6128de5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161075b565b60008260000182815481106131e4576131e4613ace565b9060005260206000200154905092915050565b60606124f1838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250613295565b6000818152600183016020526040812054613282575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106ef565b5060006106ef565b60606118c284846000855b60608247101561330d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161075b565b600080866001600160a01b031685876040516133299190613da1565b60006040518083038185875af1925050503d8060008114613366576040519150601f19603f3d011682016040523d82523d6000602084013e61336b565b606091505b509150915061337c87838387613387565b979650505050505050565b606083156133f65782516000036133ef576001600160a01b0385163b6133ef5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161075b565b50816118c2565b6118c2838381511561340b5781518083602001fd5b8060405162461bcd60e51b815260040161075b9190613475565b60005b83811015613440578181015183820152602001613428565b50506000910152565b60008151808452613461816020860160208601613425565b601f01601f19169290920160200192915050565b6020815260006124f16020830184613449565b801515811461349657600080fd5b50565b600080604083850312156134ac57600080fd5b8235915060208301356134be81613488565b809150509250929050565b6001600160a01b038116811461349657600080fd5b600080604083850312156134f157600080fd5b82356134fc816134c9565b946020939093013593505050565b60006020828403121561351c57600080fd5b5035919050565b60008060006060848603121561353857600080fd5b8335613543816134c9565b925060208401359150604084013561355a816134c9565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b818110156135a65783516001600160a01b031683529284019291840191600101613581565b50909695505050505050565b6000602082840312156135c457600080fd5b81356124f1816134c9565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561360e5761360e6135cf565b604052919050565b600067ffffffffffffffff821115613630576136306135cf565b5060051b60200190565b600082601f83011261364b57600080fd5b8135602061366061365b83613616565b6135e5565b8083825260208201915060208460051b87010193508684111561368257600080fd5b602086015b848110156136a757803561369a816134c9565b8352918301918301613687565b509695505050505050565b600067ffffffffffffffff8311156136cc576136cc6135cf565b6136df601f8401601f19166020016135e5565b90508281528383830111156136f357600080fd5b828260208301376000602084830101529392505050565b600082601f83011261371b57600080fd5b8135602061372b61365b83613616565b82815260059290921b8401810191818101908684111561374a57600080fd5b8286015b848110156136a757803567ffffffffffffffff81111561376e5760008081fd5b8701603f810189136137805760008081fd5b6137918986830135604084016136b2565b84525091830191830161374e565b600080600080608085870312156137b557600080fd5b843567ffffffffffffffff808211156137cd57600080fd5b6137d98883890161363a565b95506020915081870135818111156137f057600080fd5b8701601f8101891361380157600080fd5b803561380f61365b82613616565b81815260059190911b8201840190848101908b83111561382e57600080fd5b928501925b828410156138635783356001600160e01b0319811681146138545760008081fd5b82529285019290850190613833565b9750505050604087013591508082111561387c57600080fd5b6138888883890161370a565b9350606087013591508082111561389e57600080fd5b506138ab8782880161363a565b91505092959194509250565b600060208083016020845280855180835260408601915060408160051b87010192506020870160005b8281101561390e57603f198886030184526138fc858351613449565b945092850192908501906001016138e0565b5092979650505050505050565b6000806000806080858703121561393157600080fd5b843561393c816134c9565b935060208501359250604085013561395381613488565b9150606085013561396381613488565b939692955090935050565b60006020828403121561398057600080fd5b81356124f181613488565b60006020828403121561399d57600080fd5b813567ffffffffffffffff8111156139b457600080fd5b8201601f810184136139c557600080fd5b6106eb848235602084016136b2565b600181811c908216806139e857607f821691505b6020821081036114a457634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106ef576106ef613a08565b600082613a5257634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613a6957600080fd5b5051919050565b600080600060608486031215613a8557600080fd5b8351925060208401519150604084015190509250925092565b818103818111156106ef576106ef613a08565b600060208284031215613ac357600080fd5b81516124f1816134c9565b634e487b7160e01b600052603260045260246000fd5b808201808211156106ef576106ef613a08565b600060208284031215613b0957600080fd5b81516124f181613488565b600181815b80851115613b4f578160001904821115613b3557613b35613a08565b80851615613b4257918102915b93841c9390800290613b19565b509250929050565b600082613b66575060016106ef565b81613b73575060006106ef565b8160018114613b895760028114613b9357613baf565b60019150506106ef565b60ff841115613ba457613ba4613a08565b50506001821b6106ef565b5060208310610133831016604e8410600b8410161715613bd2575081810a6106ef565b613bdc8383613b14565b8060001904821115613bf057613bf0613a08565b029392505050565b60006124f18383613b57565b601f8211156128de576000816000526020600020601f850160051c81016020861015613c2d5750805b601f850160051c820191505b81811015613c4c57828155600101613c39565b505050505050565b815167ffffffffffffffff811115613c6e57613c6e6135cf565b613c8281613c7c84546139d4565b84613c04565b602080601f831160018114613cb75760008415613c9f5750858301515b600019600386901b1c1916600185901b178555613c4c565b600085815260208120601f198616915b82811015613ce657888601518255948401946001909101908401613cc7565b5085821015613d045787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160e01b0319831681526040602082015260006118c26040830184613449565b6001600160e01b03198316815260008251613d59816004850160208701613425565b919091016004019392505050565b600060208284031215613d7957600080fd5b815161ffff811681146124f157600080fd5b634e487b7160e01b600052603160045260246000fd5b60008251613db3818460208701613425565b919091019291505056fea26469706673582212206fdbe611c1794b51f7094323388f162a416ddaed8f349bf0e34c0aa00e4d38bd64736f6c63430008190033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.