Files
dodo-contractV2/contracts/lib/ConstFeeRateModel.sol

27 lines
494 B
Solidity
Raw Permalink Normal View History

2020-11-05 00:26:45 +08:00
/*
Copyright 2020 DODO ZOO.
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity 0.6.9;
2020-11-22 18:20:09 +08:00
interface IConstFeeRateModel {
2021-04-08 00:31:25 +08:00
function init(uint256 feeRate) external;
2020-11-24 00:20:23 +08:00
2021-04-08 00:31:25 +08:00
function getFeeRate(address) external view returns (uint256);
2020-11-05 00:26:45 +08:00
}
2021-04-08 00:31:25 +08:00
contract ConstFeeRateModel {
2020-11-05 00:26:45 +08:00
uint256 public _FEE_RATE_;
2021-04-08 00:31:25 +08:00
function init(uint256 feeRate) external {
2020-11-05 00:26:45 +08:00
_FEE_RATE_ = feeRate;
}
2021-04-08 00:31:25 +08:00
function getFeeRate(address) external view returns (uint256) {
2020-11-05 00:26:45 +08:00
return _FEE_RATE_;
}
}