update deploy script

This commit is contained in:
tracy
2022-04-22 16:05:36 +08:00
committed by owen05
parent 57742ae7fc
commit 2f5b3ca61c
4 changed files with 45 additions and 3 deletions

View File

@@ -190,6 +190,6 @@ contract FeeRateDIP3Impl is InitializableOwnable {
}
function _kjudge(bytes32 _hashPoolVersion) internal pure returns (bool) {
return (_hashPoolVersion == keccak256(abi.encodePacked("DVM 1.0.2")) || _hashPoolVersion == keccak256(abi.encodePacked("DSP 1.0.1")) || _hashPoolVersion == keccak256(abi.encodePacked("DPP 1.0.0")));
return (_hashPoolVersion == keccak256(abi.encodePacked("DVM 1.0.2")) || _hashPoolVersion == keccak256(abi.encodePacked("DSP 1.0.1")) || _hashPoolVersion == keccak256(abi.encodePacked("DPP 1.0.0")) || _hashPoolVersion == keccak256(abi.encodePacked("DPP Advanced 1.0.0")));
}
}

View File

@@ -17,6 +17,7 @@ import {DecimalMath} from "../lib/DecimalMath.sol";
import {FeeRateModel} from "../lib/FeeRateModel.sol";
interface IFeeRateImpl {
function getFeeRate(address pool, address trader) external view returns (uint256);
function addCpPoolInfo(address cpPool, address quoteToken, int globalQuota, address feeAddr, address quotaAddr) external;
}