[audit]#2 make getExpectedTarget public

This commit is contained in:
mingda
2020-07-08 17:12:00 +08:00
parent b42f4aeb3c
commit 85eee0d1c2
3 changed files with 9 additions and 9 deletions

View File

@@ -151,7 +151,7 @@ contract Pricing is Storage {
// ============ Helper functions ============
function _getExpectedTarget() internal view returns (uint256 baseTarget, uint256 quoteTarget) {
function getExpectedTarget() public view returns (uint256 baseTarget, uint256 quoteTarget) {
uint256 Q = _QUOTE_BALANCE_;
uint256 B = _BASE_BALANCE_;
if (_R_STATUS_ == Types.RStatus.ONE) {