add getLpFeeRate & getMtFeeRate to DPP

This commit is contained in:
mingda
2020-11-24 19:17:26 +08:00
parent fa9266e319
commit 2e342c8b4e

View File

@@ -97,4 +97,14 @@ contract DPPStorage is InitializableOwnable, ReentrancyGuard {
function setSell(bool open) external onlyOwner {
_SELLING_CLOSE_ = !open;
}
// ============ View Functions ============
function getLpFeeRate(address trader) external view returns (uint256 feeRate) {
return _LP_FEE_RATE_MODEL_.getFeeRate(trader);
}
function getMtFeeRate(address trader) external view returns (uint256 feeRate) {
return _MT_FEE_RATE_MODEL_.getFeeRate(trader);
}
}