2022-02-14 17:19:00 +01:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
|
|
|
|
import "./Collateral.sol";
|
|
|
|
|
|
|
|
// exposes internal functions for testing
|
|
|
|
contract TestCollateral is Collateral {
|
|
|
|
// solhint-disable-next-line no-empty-blocks
|
|
|
|
constructor(IERC20 token) Collateral(token) {}
|
|
|
|
|
|
|
|
function slash(address account, uint256 percentage) public {
|
|
|
|
_slash(account, percentage);
|
|
|
|
}
|
2022-02-15 17:18:25 +01:00
|
|
|
|
2023-01-19 16:47:29 +01:00
|
|
|
function _isWithdrawAllowed() internal pure override returns (bool) {
|
2022-12-19 14:41:08 +01:00
|
|
|
return true;
|
2022-02-15 17:18:25 +01:00
|
|
|
}
|
2022-02-14 17:19:00 +01:00
|
|
|
}
|