Verified contractPartialLicenseRef-BUSL
BabylonSpokeInstance
Address0x2c2167aa1f1eeb2e65c92d9bf9130185d3f188c4
- Balance
0 ETH
- Transactions
0
- Compiler
solc 0.8.28
- Same code
Only this contract
Details
- Compiler
- solc 0.8.28+commit.7893614a
- Language
- solidity
- Optimization
- Yes, 450 runs
- EVM version
- cancun
- Via IR
- yes
- License
- LicenseRef-BUSL
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,394,302
- Creation transaction
- 0x8689796a04…77f8d51bdf
- Libraries
- src/spoke/libraries/LiquidationLogic.sol:LiquidationLogic0x88df…deb8dbsrc/spoke/libraries/BabylonLiquidationLogic.sol:BabylonLiquidationLogic0x86ca…6e9b96
61 files
The source code is large: one file is shown at a time. Choose a file in the list.
- src/spoke/instances/BabylonSpokeInstance.solmain1.9 KB
- src/dependencies/openzeppelin-upgradeable/AccessManagedUpgradeable.sol5.54 KB
- src/dependencies/openzeppelin-upgradeable/ContextUpgradeable.sol1.18 KB
- src/dependencies/openzeppelin-upgradeable/Initializable.sol8.81 KB
- src/dependencies/openzeppelin/Arrays.sol27.76 KB
- src/dependencies/openzeppelin/AuthorityUtils.sol1.27 KB
- src/dependencies/openzeppelin/Bytes.sol10.67 KB
- src/dependencies/openzeppelin/Comparators.sol427 B
- src/dependencies/openzeppelin/ECDSA.sol11.2 KB
- src/dependencies/openzeppelin/IAccessManaged.sol1.07 KB
- src/dependencies/openzeppelin/IAccessManager.sol15.67 KB
- src/dependencies/openzeppelin/IAuthority.sol491 B
- src/dependencies/openzeppelin/IERC1271.sol656 B
- src/dependencies/openzeppelin/IERC1363.sol4.36 KB
- src/dependencies/openzeppelin/IERC165.sol853 B
- src/dependencies/openzeppelin/IERC20.sol2.66 KB
- src/dependencies/openzeppelin/IERC20Metadata.sol659 B
- src/dependencies/openzeppelin/IERC20Permit.sol3.7 KB
- src/dependencies/openzeppelin/IERC2612.sol221 B
- src/dependencies/openzeppelin/IERC4626.sol11.8 KB
- src/dependencies/openzeppelin/IERC7913.sol674 B
- src/dependencies/openzeppelin/Math.sol29.52 KB
- src/dependencies/openzeppelin/Panic.sol1.9 KB
- src/dependencies/openzeppelin/ReentrancyGuardTransient.sol2.7 KB
- src/dependencies/openzeppelin/SafeCast.sol32.15 KB
- src/dependencies/openzeppelin/SafeERC20.sol12.5 KB
- src/dependencies/openzeppelin/SignatureChecker.sol6.62 KB
- src/dependencies/openzeppelin/SlotDerivation.sol4.93 KB
- src/dependencies/openzeppelin/StorageSlot.sol3.91 KB
- src/dependencies/openzeppelin/TransientSlot.sol4.73 KB
- src/dependencies/solady/EIP712.sol8.65 KB
- src/dependencies/solady/LibBit.sol1.72 KB
- src/hub/interfaces/IHubBase.sol17.13 KB
- src/hub/libraries/Premium.sol888 B
- src/interfaces/IExtSload.sol694 B
- src/interfaces/IIntentConsumer.sol475 B
- src/interfaces/IMulticall.sol544 B
- src/interfaces/INoncesKeyed.sol1 KB
- src/libraries/math/MathUtils.sol4.33 KB
- src/libraries/math/PercentageMath.sol3.46 KB
- src/libraries/math/WadRayMath.sol7.54 KB
- src/spoke/BabylonSpoke.sol6.42 KB
- src/spoke/Spoke.sol36.5 KB
- src/spoke/SpokeStorage.sol1.66 KB
- src/spoke/interfaces/IAaveOracle.sol2.75 KB
- src/spoke/interfaces/IBabylonSpoke.sol4.34 KB
- src/spoke/interfaces/IPriceOracle.sol899 B
- src/spoke/interfaces/ISpoke.sol38.72 KB
- src/spoke/interfaces/ITokenizationSpoke.sol7.91 KB
- src/spoke/libraries/BabylonLiquidationLogic.sol15.96 KB
- src/spoke/libraries/EIP712Hash.sol4.56 KB
- src/spoke/libraries/KeyValueList.sol4.51 KB
- src/spoke/libraries/LiquidationLogic.sol33.67 KB
- src/spoke/libraries/PositionStatusMap.sol9.76 KB
- src/spoke/libraries/ReserveFlagsMap.sol4.53 KB
- src/spoke/libraries/SpokeUtils.sol1.55 KB
- src/spoke/libraries/UserPositionUtils.sol6.62 KB
- src/utils/ExtSload.sol1.24 KB
- src/utils/IntentConsumer.sol1.72 KB
- src/utils/Multicall.sol844 B
- src/utils/NoncesKeyed.sol2.94 KB
src/spoke/instances/BabylonSpokeInstance.sol
// SPDX-License-Identifier: LicenseRef-BUSL
pragma solidity 0.8.28;
import {BabylonSpoke} from 'src/spoke/BabylonSpoke.sol';
/// @title BabylonSpokeInstance
/// @author Aave Labs
/// @notice Implementation contract for the BabylonSpoke.
contract BabylonSpokeInstance is BabylonSpoke {
uint64 public constant SPOKE_REVISION = 1;
/// @dev Constructor.
/// @dev During upgrade, must ensure that the new oracle is supporting existing assets on the Spoke and the replaced oracle.
/// @param oracle_ The address of the oracle.
/// @param liquidationManager_ The only address allowed to perform liquidations on this Spoke.
/// @param managedCollateralReserveId_ The identifier of the only reserve usable as collateral.
constructor(
address oracle_,
address liquidationManager_,
uint256 managedCollateralReserveId_
) BabylonSpoke(oracle_, liquidationManager_, managedCollateralReserveId_) {
_disableInitializers();
}
/// @notice Initializer.
/// @dev The authority contract must implement the `AccessManaged` interface for access control.
/// @dev Reverts with `UnsupportedBorrowableCollateral` if the managed collateral reserve is already listed as borrowable.
/// @param authority The address of the authority contract which manages permissions.
function initialize(address authority) external override reinitializer(SPOKE_REVISION) {
emit SetSpokeImmutables(ORACLE, MAX_USER_RESERVES_LIMIT);
emit SetBabylonSpokeImmutables(LIQUIDATION_MANAGER, MANAGED_COLLATERAL_RESERVE_ID);
_validateManagedCollateralReserve(MANAGED_COLLATERAL_RESERVE_ID);
require(authority != address(0), InvalidAddress());
__AccessManaged_init(authority);
if (_liquidationConfig.targetHealthFactor == 0) {
_liquidationConfig.targetHealthFactor = HEALTH_FACTOR_LIQUIDATION_THRESHOLD;
emit UpdateLiquidationConfig(_liquidationConfig);
}
}
}
Compiler settingsShow
{
"viaIR": true,
"metadata": {
"appendCBOR": true,
"bytecodeHash": "none",
"useLiteralContent": false
},
"libraries": {
"src/spoke/libraries/LiquidationLogic.sol": {
"LiquidationLogic": "0x88dF535473C5adf1f57789734A05E555F7Deb8DB"
},
"src/spoke/libraries/BabylonLiquidationLogic.sol": {
"BabylonLiquidationLogic": "0x86ca67d45A4c7c62e52d748828d6E9ebCd6E9b96"
}
},
"optimizer": {
"runs": 450,
"enabled": true
},
"evmVersion": "cancun",
"remappings": [
"erc4626-tests/=lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.