Verified contractExactGPL-3.0
VaultProxy
Address0xfe68d7e5903f98a79b2d649cd0548a02e8ebdd67
- Balance
0 ETH
- Transactions
0
- Compiler
solc 0.6.12
- Same code
1,548 more contracts
Details
- Compiler
- solc 0.6.12+commit.27d51765
- Language
- solidity
- Optimization
- No
- EVM version
- istanbul
- License
- GPL-3.0
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 22,705,131
- Creation transaction
- 0x94ad6f5b04…bc02c6d48e
- Proxy implementation
- 0x891dee04…33468a38VaultLib
- Main copy (most transactions)
- 0x4819ac09…31fa6ab6
138 files
The source code is large: one file is shown at a time. Choose a file in the list.
- contracts/persistent/vault/VaultProxy.solmain2.47 KB
- @openzeppelin/contracts/GSN/Context.sol933 B
- @openzeppelin/contracts/access/Ownable.sol2.23 KB
- @openzeppelin/contracts/math/SafeMath.sol5.2 KB
- @openzeppelin/contracts/math/SignedSafeMath.sol2.66 KB
- @openzeppelin/contracts/token/ERC20/ERC20.sol10.79 KB
- @openzeppelin/contracts/token/ERC20/ERC20Burnable.sol1.17 KB
- @openzeppelin/contracts/token/ERC20/IERC20.sol2.7 KB
- @openzeppelin/contracts/token/ERC20/SafeERC20.sol3.71 KB
- @openzeppelin/contracts/utils/Address.sol5.88 KB
- @openzeppelin/contracts/utils/EnumerableSet.sol7.79 KB
- contracts/mocks/MockVaultLib.sol905 B
- contracts/mocks/adapters/MockGenericAdapter.sol6.22 KB
- contracts/mocks/integratees/MockChaiIntegratee.sol2.12 KB
- contracts/mocks/integratees/MockGenericIntegratee.sol1.32 KB
- contracts/mocks/integratees/MockKyberIntegratee.sol3.86 KB
- contracts/mocks/integratees/MockParaSwapIntegratee.sol3.93 KB
- contracts/mocks/integratees/MockSynthetixIntegratee.sol5.8 KB
- contracts/mocks/integratees/MockUniswapV2Integratee.sol9.59 KB
- contracts/mocks/integratees/compound/MockCEtherIntegratee.sol1.26 KB
- contracts/mocks/integratees/compound/MockCTokenBase.sol3.74 KB
- contracts/mocks/integratees/compound/MockCTokenIntegratee.sol1.39 KB
- contracts/mocks/integratees/utils/MockIntegrateeBase.sol1.6 KB
- contracts/mocks/integratees/utils/SimpleMockIntegrateeBase.sol1.13 KB
- contracts/mocks/prices/CentralizedRateProvider.sol8.27 KB
- contracts/mocks/prices/MockChaiPriceSource.sol925 B
- contracts/mocks/prices/MockChainlinkPriceSource.sol1.25 KB
- contracts/mocks/prices/MockSynthetixPriceSource.sol4.03 KB
- contracts/mocks/prices/MockUniswapV2PriceSource.sol1.92 KB
- contracts/mocks/tokens/MockReentrancyToken.sol1.58 KB
- contracts/mocks/tokens/MockSynthetixToken.sol2.02 KB
- contracts/mocks/tokens/MockToken.sol913 B
- contracts/mocks/utils/EthConstantMixin.sol405 B
- contracts/mocks/utils/NormalizedRateProviderBase.sol1.67 KB
- contracts/mocks/utils/RateProviderBase.sol2.2 KB
- contracts/mocks/utils/SwapperBase.sol2.87 KB
- contracts/persistent/dispatcher/Dispatcher.sol24.68 KB
- contracts/persistent/dispatcher/IDispatcher.sol2.57 KB
- contracts/persistent/utils/IMigratableVault.sol751 B
- contracts/persistent/utils/IMigrationHookHandler.sol904 B
- contracts/persistent/vault/VaultLibBase1.sol979 B
- contracts/persistent/vault/VaultLibBaseCore.sol4.68 KB
- contracts/persistent/vault/utils/ProxiableVaultLib.sol1.75 KB
- contracts/persistent/vault/utils/SharesTokenBase.sol5.38 KB
- contracts/persistent/vault/utils/VaultLibSafeMath.sol2.13 KB
- contracts/release/core/fund-deployer/FundDeployer.sol19.78 KB
- contracts/release/core/fund-deployer/IFundDeployer.sol658 B
- contracts/release/core/fund/comptroller/ComptrollerLib.sol39.06 KB
- contracts/release/core/fund/comptroller/ComptrollerProxy.sol648 B
- contracts/release/core/fund/comptroller/IComptroller.sol1.26 KB
- contracts/release/core/fund/vault/IVault.sol1.29 KB
- contracts/release/core/fund/vault/VaultLib.sol8.88 KB
- contracts/release/extensions/IExtension.sol755 B
- contracts/release/extensions/fee-manager/FeeManager.sol21.61 KB
- contracts/release/extensions/fee-manager/IFee.sol1.67 KB
- contracts/release/extensions/fee-manager/IFeeManager.sol901 B
- contracts/release/extensions/fee-manager/fees/EntranceRateBurnFee.sol907 B
- contracts/release/extensions/fee-manager/fees/EntranceRateDirectFee.sol939 B
- contracts/release/extensions/fee-manager/fees/ManagementFee.sol7.02 KB
- contracts/release/extensions/fee-manager/fees/PerformanceFee.sol19.69 KB
- contracts/release/extensions/fee-manager/fees/utils/EntranceRateFeeBase.sol4.93 KB
- contracts/release/extensions/fee-manager/fees/utils/FeeBase.sol3.05 KB
- contracts/release/extensions/integration-manager/IIntegrationManager.sol522 B
- contracts/release/extensions/integration-manager/IntegrationManager.sol33.88 KB
- contracts/release/extensions/integration-manager/integrations/IIntegrationAdapter.sol989 B
- contracts/release/extensions/integration-manager/integrations/adapters/ChaiAdapter.sol5.83 KB
- contracts/release/extensions/integration-manager/integrations/adapters/CompoundAdapter.sol7.45 KB
- contracts/release/extensions/integration-manager/integrations/adapters/KyberAdapter.sol7.45 KB
- contracts/release/extensions/integration-manager/integrations/adapters/ParaSwapAdapter.sol10.75 KB
- contracts/release/extensions/integration-manager/integrations/adapters/SynthetixAdapter.sol5.95 KB
- contracts/release/extensions/integration-manager/integrations/adapters/TrackedAssetsAdapter.sol3.19 KB
- contracts/release/extensions/integration-manager/integrations/adapters/UniswapV2Adapter.sol12.38 KB
- contracts/release/extensions/integration-manager/integrations/adapters/ZeroExV2Adapter.sol13.77 KB
- contracts/release/extensions/integration-manager/integrations/utils/AdapterBase.sol4.57 KB
- contracts/release/extensions/integration-manager/integrations/utils/IntegrationSelectors.sol1.03 KB
- contracts/release/extensions/policy-manager/IPolicy.sol1.18 KB
- contracts/release/extensions/policy-manager/IPolicyManager.sol768 B
- contracts/release/extensions/policy-manager/PolicyManager.sol13.63 KB
- contracts/release/extensions/policy-manager/policies/buy-shares/BuySharesCallerWhitelist.sol3.66 KB
- contracts/release/extensions/policy-manager/policies/buy-shares/InvestorWhitelist.sol3.63 KB
- contracts/release/extensions/policy-manager/policies/buy-shares/MinMaxInvestment.sol5.39 KB
- contracts/release/extensions/policy-manager/policies/buy-shares/utils/BuySharesSetupPolicyBase.sol1.38 KB
- contracts/release/extensions/policy-manager/policies/buy-shares/utils/PreBuySharesValidatePolicyBase.sol1.41 KB
- contracts/release/extensions/policy-manager/policies/call-on-integration/AdapterBlacklist.sol2.5 KB
- contracts/release/extensions/policy-manager/policies/call-on-integration/AdapterWhitelist.sol2.5 KB
- contracts/release/extensions/policy-manager/policies/call-on-integration/AssetBlacklist.sol3.62 KB
- contracts/release/extensions/policy-manager/policies/call-on-integration/AssetWhitelist.sol3.66 KB
- contracts/release/extensions/policy-manager/policies/call-on-integration/GuaranteedRedemption.sol10.31 KB
- contracts/release/extensions/policy-manager/policies/call-on-integration/MaxConcentration.sol7 KB
- contracts/release/extensions/policy-manager/policies/call-on-integration/utils/PostCallOnIntegrationValidatePolicyBase.sol1.67 KB
- contracts/release/extensions/policy-manager/policies/call-on-integration/utils/PreCallOnIntegrationValidatePolicyBase.sol1.34 KB
- contracts/release/extensions/policy-manager/policies/utils/AddressListPolicyMixin.sol2.99 KB
- contracts/release/extensions/policy-manager/policies/utils/PolicyBase.sol1.68 KB
- contracts/release/extensions/utils/ExtensionBase.sol3.17 KB
- contracts/release/extensions/utils/FundDeployerOwnerMixin.sol1.49 KB
- contracts/release/extensions/utils/PermissionedVaultActionMixin.sol4.42 KB
- contracts/release/infrastructure/price-feeds/derivatives/AggregatedDerivativePriceFeed.sol6.82 KB
- contracts/release/infrastructure/price-feeds/derivatives/IAggregatedDerivativePriceFeed.sol563 B
- contracts/release/infrastructure/price-feeds/derivatives/IDerivativePriceFeed.sol683 B
- contracts/release/infrastructure/price-feeds/derivatives/feeds/ChaiPriceFeed.sol2.96 KB
- contracts/release/infrastructure/price-feeds/derivatives/feeds/CompoundPriceFeed.sol4 KB
- contracts/release/infrastructure/price-feeds/derivatives/feeds/SynthetixPriceFeed.sol6.81 KB
- contracts/release/infrastructure/price-feeds/derivatives/feeds/UniswapV2PoolPriceFeed.sol10.62 KB
- contracts/release/infrastructure/price-feeds/derivatives/feeds/WdgldPriceFeed.sol4.72 KB
- contracts/release/infrastructure/price-feeds/primitives/ChainlinkPriceFeed.sol19.13 KB
- contracts/release/infrastructure/price-feeds/primitives/IPrimitivePriceFeed.sol778 B
- contracts/release/infrastructure/price-feeds/utils/UniswapV2PoolTokenValueCalculator.sol7.22 KB
- contracts/release/infrastructure/utils/DispatcherOwnerMixin.sol1.45 KB
- contracts/release/infrastructure/value-interpreter/IValueInterpreter.sol1.01 KB
- contracts/release/infrastructure/value-interpreter/ValueInterpreter.sol8.41 KB
- contracts/release/interfaces/ICERC20.sol822 B
- contracts/release/interfaces/ICEther.sol490 B
- contracts/release/interfaces/IChai.sol614 B
- contracts/release/interfaces/IChainlinkAggregator.sol535 B
- contracts/release/interfaces/IKyberNetworkProxy.sol681 B
- contracts/release/interfaces/IMakerDaoPot.sol666 B
- contracts/release/interfaces/IParaSwapAugustusSwapper.sol929 B
- contracts/release/interfaces/ISynthetix.sol568 B
- contracts/release/interfaces/ISynthetixAddressResolver.sol513 B
- contracts/release/interfaces/ISynthetixExchangeRates.sol492 B
- contracts/release/interfaces/ISynthetixExchanger.sol768 B
- contracts/release/interfaces/ISynthetixProxyERC20.sol465 B
- contracts/release/interfaces/ISynthetixSynth.sol460 B
- contracts/release/interfaces/IUniswapV2Factory.sol621 B
- contracts/release/interfaces/IUniswapV2Pair.sol860 B
- contracts/release/interfaces/IUniswapV2Router2.sol1.12 KB
- contracts/release/interfaces/IWETH.sol462 B
- contracts/release/interfaces/IZeroExV2.sol1.87 KB
- contracts/release/peripheral/FundActionsWrapper.sol4.58 KB
- contracts/release/peripheral/shares-requestors/AuthUserExecutedSharesRequestorFactory.sol4.59 KB
- contracts/release/peripheral/shares-requestors/AuthUserExecutedSharesRequestorLib.sol12.05 KB
- contracts/release/peripheral/shares-requestors/AuthUserExecutedSharesRequestorProxy.sol551 B
- contracts/release/peripheral/shares-requestors/IAuthUserExecutedSharesRequestor.sol471 B
- contracts/release/utils/AddressArrayLib.sol2.61 KB
- contracts/release/utils/AssetFinalityResolver.sol2.66 KB
- contracts/release/utils/MakerDaoMath.sol2.32 KB
- contracts/release/utils/MathHelpers.sol1.4 KB
- contracts/release/utils/Proxy.sol1.94 KB
@openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
/**
* @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
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies in extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 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://diligence.consensys.net/posts/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.5.11/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");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(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 functionCall(target, data, "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");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
// 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
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"libraries": {},
"optimizer": {
"runs": 200,
"details": {
"cse": true,
"yul": false,
"peephole": true,
"deduplicate": true,
"orderLiterals": true,
"jumpdestRemover": true,
"constantOptimizer": true
}
},
"evmVersion": "istanbul",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.