Gelato-automations/test/helpers/setups/Constants.helper.js
2020-11-02 09:44:35 +01:00

26 lines
752 B
JavaScript

const hre = require("hardhat");
const {ethers} = hre;
const ETH = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
const GAS_LIMIT = "4000000";
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);
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,
};
}
module.exports = getConstants;