2021-04-04 01:05:08 +08:00
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
Copyright 2020 DODO ZOO.
|
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
pragma solidity 0.6.9;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface IFragment {
|
|
|
|
|
|
|
|
|
|
function init(
|
|
|
|
|
address dvm,
|
|
|
|
|
address vaultPreOwner,
|
|
|
|
|
address collateralVault,
|
|
|
|
|
uint256 totalSupply,
|
|
|
|
|
uint256 ownerRatio,
|
2021-04-28 15:07:28 +08:00
|
|
|
uint256 buyoutTimestamp,
|
|
|
|
|
address defaultMaintainer,
|
2021-06-17 14:04:46 +08:00
|
|
|
address buyoutModel,
|
2021-05-26 20:03:32 +08:00
|
|
|
uint256 distributionRatio,
|
|
|
|
|
string memory fragSymbol
|
2021-04-04 01:05:08 +08:00
|
|
|
) external;
|
|
|
|
|
|
|
|
|
|
function buyout(address newVaultOwner) external;
|
|
|
|
|
|
|
|
|
|
function redeem(address to) external;
|
|
|
|
|
|
|
|
|
|
function _QUOTE_() external view returns (address);
|
2021-04-28 12:19:44 +08:00
|
|
|
|
2021-04-30 12:00:32 +08:00
|
|
|
function _COLLATERAL_VAULT_() external view returns (address);
|
|
|
|
|
|
2021-04-28 12:19:44 +08:00
|
|
|
function _DVM_() external view returns (address);
|
|
|
|
|
|
|
|
|
|
function totalSupply() external view returns (uint256);
|
2021-04-04 01:05:08 +08:00
|
|
|
}
|