use IDVM Vault
This commit is contained in:
@@ -16,7 +16,7 @@ import {DecimalMath} from "../../lib/DecimalMath.sol";
|
||||
import {IPermissionManager} from "../../lib/PermissionManager.sol";
|
||||
import {IGasPriceSource} from "../../lib/GasPriceSource.sol";
|
||||
import {IFeeRateModel} from "../../intf/IFeeRateModel.sol";
|
||||
import {DVMVault} from "./DVMVault.sol";
|
||||
import {IDVMVault} from "../intf/IDVMVault.sol";
|
||||
|
||||
contract DVMStorage is InitializableOwnable, ReentrancyGuard {
|
||||
using SafeMath for uint256;
|
||||
@@ -46,7 +46,7 @@ contract DVMStorage is InitializableOwnable, ReentrancyGuard {
|
||||
uint256 public _K_;
|
||||
uint256 public _I_;
|
||||
|
||||
DVMVault public _VAULT_;
|
||||
IDVMVault public _VAULT_;
|
||||
|
||||
// ============ Modifiers ============
|
||||
|
||||
|
||||
@@ -14,4 +14,58 @@ interface IDVMVault {
|
||||
address _baseToken,
|
||||
address _quoteToken
|
||||
) external;
|
||||
|
||||
function _BASE_TOKEN_() external returns (address);
|
||||
|
||||
function _QUOTE_TOKEN_() external returns (address);
|
||||
|
||||
function _BASE_RESERVE_() external returns (address);
|
||||
|
||||
function _QUOTE_RESERVE_() external returns (address);
|
||||
|
||||
function symbol() external returns (string memory);
|
||||
|
||||
function decimals() external returns (uint256);
|
||||
|
||||
function name() external returns (string memory);
|
||||
|
||||
function totalSupply() external returns (uint256);
|
||||
|
||||
function getVaultBalance() external view returns (uint256 baseBalance, uint256 quoteBalance);
|
||||
|
||||
function getVaultReserve() external view returns (uint256 baseReserve, uint256 quoteReserve);
|
||||
|
||||
function getBaseBalance() external view returns (uint256 baseBalance);
|
||||
|
||||
function getQuoteBalance() external view returns (uint256 quoteBalance);
|
||||
|
||||
function getBaseInput() external view returns (uint256 input);
|
||||
|
||||
function getQuoteInput() external view returns (uint256 input);
|
||||
|
||||
function sync() external;
|
||||
|
||||
function transferBaseOut(address to, uint256 amount) external;
|
||||
|
||||
function transferQuoteOut(address to, uint256 amount) external;
|
||||
|
||||
function transfer(address to, uint256 amount) external returns (bool);
|
||||
|
||||
function balanceOf(address owner) external view returns (uint256 balance);
|
||||
|
||||
function shareRatioOf(address owner) external view returns (uint256 shareRatio);
|
||||
|
||||
function transferFrom(
|
||||
address from,
|
||||
address to,
|
||||
uint256 amount
|
||||
) external returns (bool);
|
||||
|
||||
function approve(address spender, uint256 amount) external returns (bool);
|
||||
|
||||
function allowance(address owner, address spender) external view returns (uint256);
|
||||
|
||||
function mint(address user, uint256 value) external;
|
||||
|
||||
function burn(address user, uint256 value) external;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user