forked from aave-dao/aave-v3-origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMockPool.sol
29 lines (21 loc) · 869 Bytes
/
MockPool.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol';
import {PoolInstance} from '../../instances/PoolInstance.sol';
contract MockPoolInherited is PoolInstance {
uint16 internal _maxNumberOfReserves = 128;
function getRevision() internal pure override returns (uint256) {
return super.getRevision() + 1;
}
constructor(IPoolAddressesProvider provider) PoolInstance(provider) {}
function setMaxNumberOfReserves(uint16 newMaxNumberOfReserves) public {
_maxNumberOfReserves = newMaxNumberOfReserves;
}
function MAX_NUMBER_RESERVES() public view override returns (uint16) {
return _maxNumberOfReserves;
}
function dropReserve(address asset) external override {
_reservesList[_reserves[asset].id] = address(0);
delete _reserves[asset];
}
}