Verified contractExactMIT
TransparentUpgradeableProxy
Address0xd75ab4b69f2edfb072fdfd7e2d15a875f95ae5ae
- Balance
0 ETH
- Transactions
33
- Compiler
solc 0.8.20
- Same code
1,298 more contracts
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- paris
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 21,853,673
- Creation transaction
- 0xb37e190e08…3bcb276f48
- Proxy implementation
- 0xe1f4c214…ca1e5076source code not verified
- Main copy (most transactions)
- 0xda5e1988…847cbef6
112 files
The source code is large: one file is shown at a time. Choose a file in the list.
- @openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.solmain6.37 KB
- @openzeppelin/contracts-upgradeable/../proxy/utils/Initializable.sol8.91 KB
- @openzeppelin/contracts-upgradeable/../utils/ContextUpgradeable.sol1.19 KB
- @openzeppelin/contracts-upgradeable/../utils/introspection/ERC165Upgradeable.sol1.18 KB
- @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol4.03 KB
- @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol8.91 KB
- @openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol19.4 KB
- @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol1.19 KB
- @openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol3.86 KB
- @openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol4.36 KB
- @openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol1.18 KB
- @openzeppelin/contracts/access/AccessControl.sol7.05 KB
- @openzeppelin/contracts/access/IAccessControl.sol3.26 KB
- @openzeppelin/contracts/access/Ownable.sol3.1 KB
- @openzeppelin/contracts/contracts-upgradeable/../proxy/utils/Initializable.sol8.91 KB
- @openzeppelin/contracts/contracts-upgradeable/../utils/ContextUpgradeable.sol1.19 KB
- @openzeppelin/contracts/contracts-upgradeable/../utils/introspection/ERC165Upgradeable.sol1.18 KB
- @openzeppelin/contracts/contracts-upgradeable/access/OwnableUpgradeable.sol4.03 KB
- @openzeppelin/contracts/contracts-upgradeable/proxy/utils/Initializable.sol8.91 KB
- @openzeppelin/contracts/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol19.4 KB
- @openzeppelin/contracts/contracts-upgradeable/utils/ContextUpgradeable.sol1.19 KB
- @openzeppelin/contracts/contracts-upgradeable/utils/PausableUpgradeable.sol3.86 KB
- @openzeppelin/contracts/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol4.36 KB
- @openzeppelin/contracts/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol1.18 KB
- @openzeppelin/contracts/interfaces/IERC1967.sol636 B
- @openzeppelin/contracts/interfaces/IERC20.sol181 B
- @openzeppelin/contracts/interfaces/IERC20Metadata.sol216 B
- @openzeppelin/contracts/interfaces/IERC5267.sol739 B
- @openzeppelin/contracts/interfaces/draft-IERC6093.sol6.53 KB
- @openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol1.72 KB
- @openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol6.72 KB
- @openzeppelin/contracts/proxy/Proxy.sol2.67 KB
- @openzeppelin/contracts/proxy/beacon/BeaconProxy.sol2.31 KB
- @openzeppelin/contracts/proxy/beacon/IBeacon.sol472 B
- @openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol2.22 KB
- @openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol1.95 KB
- @openzeppelin/contracts/proxy/utils/Initializable.sol8.91 KB
- @openzeppelin/contracts/token/ERC20/ERC20.sol11.14 KB
- @openzeppelin/contracts/token/ERC20/IERC20.sol2.78 KB
- @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol1.18 KB
- @openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol2.77 KB
- @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol683 B
- @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol3.8 KB
- @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol5.77 KB
- @openzeppelin/contracts/token/ERC721/IERC721.sol4.93 KB
- @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol995 B
- @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol792 B
- @openzeppelin/contracts/utils/Address.sol6.26 KB
- @openzeppelin/contracts/utils/Context.sol963 B
- @openzeppelin/contracts/utils/ContextUpgradeable.sol1.19 KB
- @openzeppelin/contracts/utils/Create2.sol4.37 KB
- @openzeppelin/contracts/utils/Nonces.sol1.49 KB
- @openzeppelin/contracts/utils/ShortStrings.sol4.31 KB
- @openzeppelin/contracts/utils/StorageSlot.sol3.93 KB
- @openzeppelin/contracts/utils/Strings.sol3.1 KB
- @openzeppelin/contracts/utils/cryptography/ECDSA.sol7.73 KB
- @openzeppelin/contracts/utils/cryptography/EIP712.sol6.61 KB
- @openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol3.76 KB
- @openzeppelin/contracts/utils/introspection/ERC165.sol911 B
- @openzeppelin/contracts/utils/introspection/ERC165Upgradeable.sol1.18 KB
- @openzeppelin/contracts/utils/introspection/IERC165.sol869 B
- @openzeppelin/contracts/utils/math/Math.sol15.12 KB
- @openzeppelin/contracts/utils/math/SignedMath.sol1.26 KB
- @openzeppelin/proxy/utils/Initializable.sol8.91 KB
- @openzeppelin/utils/ContextUpgradeable.sol1.19 KB
- @openzeppelin/utils/introspection/ERC165Upgradeable.sol1.18 KB
- contracts/NFT/ERC721V1.sol6.77 KB
- contracts/NFT/ERC721V2.sol1.14 KB
- contracts/NFT/burnRegistry/BurnRegistryV1.sol4.14 KB
- contracts/Proxies.sol218 B
- contracts/XERC20/XERC20.sol10.99 KB
- contracts/XERC20/XERC20Lockbox.sol4.34 KB
- contracts/bridge/InceptionBridge.sol11.92 KB
- contracts/bridge/InceptionBridgeStorage.sol8.87 KB
- contracts/bridgeMiddleware/BridgeMiddleware.sol2.01 KB
- contracts/bridgeMiddleware/MinimalProxyFactory.sol2.17 KB
- contracts/factory/BridgeFactory.sol6.78 KB
- contracts/governance/GovernorMultisig.sol1.64 KB
- contracts/governance/Multiownable.sol8.52 KB
- contracts/interfaces/IAcrossSpokePool.sol655 B
- contracts/interfaces/IERC20.sol874 B
- contracts/interfaces/IFactory.sol1.45 KB
- contracts/interfaces/IInceptionBridge.sol2.05 KB
- contracts/interfaces/IInceptionBridgeErrors.sol1.02 KB
- contracts/interfaces/IInceptionRatioFeed.sol973 B
- contracts/interfaces/IPriceFeed.sol304 B
- contracts/interfaces/IRateProvider.sol178 B
- contracts/interfaces/IXERC20.sol4.25 KB
- contracts/interfaces/IXERC20Lockbox.sol2.47 KB
- contracts/lib/CallDataRLPReader.sol3.66 KB
- contracts/lib/EthereumVerifier.sol6.58 KB
- contracts/lib/ProofParser.sol1.19 KB
- contracts/lib/Utils.sol2.07 KB
- contracts/mock/AcrossSpokePoolMock.sol1.33 KB
- contracts/mock/ERC20Mock.sol507 B
- contracts/mock/PriceFeedMock.sol824 B
- contracts/multicall/Multicall3.sol9.61 KB
- contracts/proxy/InitializableERC1967Proxy.sol716 B
- contracts/proxy/InitializableTransparentUpgradeableProxy.sol6.28 KB
- contracts/proxy/Proxy.sol343 B
- contracts/rate_providers/InETH/InETHRateProvider.sol552 B
- contracts/rate_providers/InceptionRateProvider.sol1.59 KB
- contracts/rate_providers/InstETH/InstETHRateProvider.sol560 B
- contracts/ratio_feed/InceptionRatioFeed.sol6.26 KB
- contracts/storage/Storage.sol3.77 KB
- contracts/tests/ERC20Mintable.sol498 B
- contracts/tests/MultipleDepositor.sol848 B
- contracts/tokens/EVE.sol391 B
- contracts/tokens/USDC.sol927 B
- contracts/tokens/USDT.sol927 B
- contracts/treasury/TreasuryV1.sol2.34 KB
- contracts/vault/VaultV1.sol4.82 KB
contracts/XERC20/XERC20.sol
// // SPDX-License-Identifier: MIT
// pragma solidity ^0.8.20;
// import "../interfaces/IXERC20.sol";
// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
// import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// contract XERC20 is ERC20, Ownable, IXERC20, ERC20Permit {
// /**
// * @notice The duration it takes for the limits to fully replenish
// */
// uint256 private constant _DURATION = 1 days;
// /**
// * @notice The address of the factory which deployed this contract
// */
// address public immutable FACTORY;
// /**
// * @notice The address of the lockbox contract
// */
// address public lockbox;
// /**
// * @notice Maps bridge address to bridge configurations
// */
// mapping(address => Bridge) public bridges;
// /**
// * @param _name The name of the token
// * @param _symbol The symbol of the token
// * @param _factory The factory which deployed this contract
// */
// constructor(
// string memory _name,
// string memory _symbol,
// address _factory
// ) ERC20(_name, _symbol) ERC20Permit(_name) {
// _transferOwnership(_factory);
// FACTORY = _factory;
// }
// /**
// * @notice Mints tokens for a user
// * @dev Can only be called by a bridge
// * @param _user The address of the user who needs tokens minted
// * @param _amount The amount of tokens being minted
// */
// function mint(address _user, uint256 _amount) external {
// _mintWithCaller(msg.sender, _user, _amount);
// }
// /**
// * @notice Burns tokens for a user
// * @dev Can only be called by a bridge
// * @param _user The address of the user who needs tokens burned
// * @param _amount The amount of tokens being burned
// */
// function burn(address _user, uint256 _amount) external {
// _burnWithCaller(msg.sender, _user, _amount);
// }
// /**
// * @notice Sets the lockbox address
// * @param _lockbox The address of the lockbox
// */
// function setLockbox(address _lockbox) external {
// if (msg.sender != FACTORY) revert IXERC20_NotFactory();
// lockbox = _lockbox;
// emit LockboxSet(_lockbox);
// }
// /**
// * @notice Updates the limits of any bridge
// * @dev Can only be called by the owner
// * @param _mintingLimit The updated minting limit we are setting to the bridge
// * @param _burningLimit The updated burning limit we are setting to the bridge
// * @param _bridge The address of the bridge we are setting the limits too
// */
// function setBridgeLimits(
// address _bridge,
// uint256 _mintingLimit,
// uint256 _burningLimit
// ) external onlyOwner {
// _changeMinterLimit(_bridge, _mintingLimit);
// _changeBurnerLimit(_bridge, _burningLimit);
// emit BridgeLimitsSet(_mintingLimit, _burningLimit, _bridge);
// }
// /**
// * @notice Returns the max limit of a bridge
// * @param _bridge the bridge we are viewing the limits of
// * @return _limit The limit the bridge has
// */
// function mintingMaxLimitOf(
// address _bridge
// ) external view returns (uint256 _limit) {
// _limit = bridges[_bridge].minterParams.maxLimit;
// }
// /**
// * @notice Returns the max limit of a bridge
// * @param _bridge the bridge we are viewing the limits of
// * @return _limit The limit the bridge has
// */
// function burningMaxLimitOf(
// address _bridge
// ) external view returns (uint256 _limit) {
// _limit = bridges[_bridge].burnerParams.maxLimit;
// }
// /**
// * @notice Returns the current limit of a bridge
// * @param _bridge the bridge we are viewing the limits of
// * @return _limit The limit the bridge has
// */
// function mintingCurrentLimitOf(
// address _bridge
// ) public view returns (uint256 _limit) {
// _limit = _getCurrentLimit(
// bridges[_bridge].minterParams.currentLimit,
// bridges[_bridge].minterParams.maxLimit,
// bridges[_bridge].minterParams.timestamp,
// bridges[_bridge].minterParams.ratePerSecond
// );
// }
// /**
// * @notice Returns the current limit of a bridge
// * @param _bridge the bridge we are viewing the limits of
// * @return _limit The limit the bridge has
// */
// function burningCurrentLimitOf(
// address _bridge
// ) public view returns (uint256 _limit) {
// _limit = _getCurrentLimit(
// bridges[_bridge].burnerParams.currentLimit,
// bridges[_bridge].burnerParams.maxLimit,
// bridges[_bridge].burnerParams.timestamp,
// bridges[_bridge].burnerParams.ratePerSecond
// );
// }
// /**
// * @notice Uses the limit of any bridge
// * @param _bridge The address of the bridge who is being changed
// * @param _change The change in the limit
// */
// function _useMinterLimits(address _bridge, uint256 _change) internal {
// uint256 _currentLimit = mintingCurrentLimitOf(_bridge);
// bridges[_bridge].minterParams.timestamp = block.timestamp;
// bridges[_bridge].minterParams.currentLimit = _currentLimit - _change;
// }
// /**
// * @notice Uses the limit of any bridge
// * @param _bridge The address of the bridge who is being changed
// * @param _change The change in the limit
// */
// function _useBurnerLimits(address _bridge, uint256 _change) internal {
// uint256 _currentLimit = burningCurrentLimitOf(_bridge);
// bridges[_bridge].burnerParams.timestamp = block.timestamp;
// bridges[_bridge].burnerParams.currentLimit = _currentLimit - _change;
// }
// /**
// * @notice Updates the limit of any bridge
// * @dev Can only be called by the owner
// * @param _bridge The address of the bridge we are setting the limit too
// * @param _limit The updated limit we are setting to the bridge
// */
// function _changeMinterLimit(address _bridge, uint256 _limit) internal {
// if (_limit < _DURATION && _limit > 0) revert IXERC20_WrongBridgeLimit();
// uint256 _oldLimit = bridges[_bridge].minterParams.maxLimit;
// uint256 _currentLimit = mintingCurrentLimitOf(_bridge);
// bridges[_bridge].minterParams.maxLimit = _limit;
// bridges[_bridge].minterParams.currentLimit = _calculateNewCurrentLimit(
// _limit,
// _oldLimit,
// _currentLimit
// );
// bridges[_bridge].minterParams.ratePerSecond = _limit / _DURATION;
// bridges[_bridge].minterParams.timestamp = block.timestamp;
// }
// /**
// * @notice Updates the limit of any bridge
// * @dev Can only be called by the owner
// * @param _bridge The address of the bridge we are setting the limit too
// * @param _limit The updated limit we are setting to the bridge
// */
// function _changeBurnerLimit(address _bridge, uint256 _limit) internal {
// if (_limit < _DURATION && _limit > 0) revert IXERC20_WrongBridgeLimit();
// uint256 _oldLimit = bridges[_bridge].burnerParams.maxLimit;
// uint256 _currentLimit = burningCurrentLimitOf(_bridge);
// bridges[_bridge].burnerParams.maxLimit = _limit;
// bridges[_bridge].burnerParams.currentLimit = _calculateNewCurrentLimit(
// _limit,
// _oldLimit,
// _currentLimit
// );
// bridges[_bridge].burnerParams.ratePerSecond = _limit / _DURATION;
// bridges[_bridge].burnerParams.timestamp = block.timestamp;
// }
// /**
// * @param _limit The new limit
// * @param _oldLimit The old limit
// * @param _currentLimit The current limit
// * @return _newCurrentLimit The new current limit
// */
// function _calculateNewCurrentLimit(
// uint256 _limit,
// uint256 _oldLimit,
// uint256 _currentLimit
// ) internal pure returns (uint256 _newCurrentLimit) {
// uint256 _difference;
// if (_oldLimit > _limit) {
// _difference = _oldLimit - _limit;
// _newCurrentLimit = _currentLimit > _difference
// ? _currentLimit - _difference
// : 0;
// } else {
// _difference = _limit - _oldLimit;
// _newCurrentLimit = _currentLimit + _difference;
// }
// }
// /**
// * @param _currentLimit The current limit
// * @param _maxLimit The max limit
// * @param _timestamp The timestamp of the last update
// * @param _ratePerSecond The rate per second
// * @return _limit The current limit
// */
// function _getCurrentLimit(
// uint256 _currentLimit,
// uint256 _maxLimit,
// uint256 _timestamp,
// uint256 _ratePerSecond
// ) internal view returns (uint256 _limit) {
// _limit = _currentLimit;
// if (_limit == _maxLimit) {
// return _limit;
// } else if (_timestamp + _DURATION <= block.timestamp) {
// _limit = _maxLimit;
// } else if (_timestamp + _DURATION > block.timestamp) {
// uint256 _timePassed = block.timestamp - _timestamp;
// uint256 _calculatedLimit = _limit + (_timePassed * _ratePerSecond);
// _limit = _calculatedLimit > _maxLimit
// ? _maxLimit
// : _calculatedLimit;
// }
// }
// /**
// * @param _caller The caller address
// * @param _user The user address
// * @param _amount The amount to burn
// */
// function _burnWithCaller(
// address _caller,
// address _user,
// uint256 _amount
// ) internal {
// if (_caller != lockbox) {
// uint256 _currentLimit = burningCurrentLimitOf(_caller);
// if (_currentLimit < _amount) revert IXERC20_NotHighEnoughLimits();
// _useBurnerLimits(_caller, _amount);
// }
// _burn(_user, _amount);
// }
// /**
// * @param _caller The caller address
// * @param _user The user address
// * @param _amount The amount to mint
// */
// function _mintWithCaller(
// address _caller,
// address _user,
// uint256 _amount
// ) internal {
// if (_caller != lockbox) {
// uint256 _currentLimit = mintingCurrentLimitOf(_caller);
// if (_currentLimit < _amount) revert IXERC20_NotHighEnoughLimits();
// _useMinterLimits(_caller, _amount);
// }
// _mint(_user, _amount);
// }
// }
Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "paris",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.