2020-10-30 17:35:11 +00:00
|
|
|
const hre = require("hardhat");
|
|
|
|
const {ethers} = hre;
|
|
|
|
|
|
|
|
const ETH = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
2020-11-10 10:43:04 +00:00
|
|
|
const GAS_LIMIT = "5000000";
|
2020-10-30 17:35:11 +00:00
|
|
|
const GAS_PRICE_CEIL = ethers.utils.parseUnits("1000", "gwei");
|
|
|
|
|
|
|
|
const MIN_COL_RATIO_MAKER = ethers.utils.parseUnits("3", 18);
|
|
|
|
|
|
|
|
// TO DO: make dynamic based on real time Collateral Price and Ratios
|
|
|
|
const MAKER_INITIAL_ETH = ethers.utils.parseEther("10");
|
|
|
|
const MAKER_INITIAL_DEBT = ethers.utils.parseUnits("1000", 18);
|
|
|
|
|
2020-11-10 10:43:04 +00:00
|
|
|
const MAX_FEES_IN_PERCENT = ethers.utils.parseUnits("1", 17);
|
|
|
|
|
2020-10-30 17:35:11 +00:00
|
|
|
async function getConstants() {
|
|
|
|
return {
|
|
|
|
ETH: ETH,
|
|
|
|
MIN_COL_RATIO_MAKER: MIN_COL_RATIO_MAKER,
|
|
|
|
GAS_PRICE_CEIL: GAS_PRICE_CEIL,
|
|
|
|
GAS_LIMIT: GAS_LIMIT,
|
|
|
|
MAKER_INITIAL_DEBT: MAKER_INITIAL_DEBT,
|
|
|
|
MAKER_INITIAL_ETH: MAKER_INITIAL_ETH,
|
2020-11-10 10:43:04 +00:00
|
|
|
MAX_FEES_IN_PERCENT: MAX_FEES_IN_PERCENT,
|
2020-10-30 17:35:11 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = getConstants;
|