add global quota to cp init

This commit is contained in:
tracy
2022-04-21 16:27:46 +08:00
committed by owen05
parent e435578b3f
commit a1a51d9b5a
4 changed files with 34 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ import {InitializableOwnable} from "../lib/InitializableOwnable.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;
}
interface IFeeRateModel {
@@ -30,4 +31,8 @@ contract FeeRateModel is InitializableOwnable {
return 0;
return IFeeRateImpl(feeRateImpl).getFeeRate(msg.sender,trader);
}
function addCpPoolInfo(address cpPool, address quoteToken, int globalQuota, address feeAddr, address quotaAddr) external {
IFeeRateImpl(feeRateImpl).addCpPoolInfo(cpPool, quoteToken, globalQuota, feeAddr, quotaAddr);
}
}