mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
29 lines
861 B
JavaScript
29 lines
861 B
JavaScript
const hre = require("hardhat");
|
|
const {ethers} = hre;
|
|
|
|
const ETH = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
const GAS_LIMIT = "5000000";
|
|
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);
|
|
|
|
const MAX_FEES_IN_PERCENT = ethers.utils.parseUnits("1", 17);
|
|
|
|
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,
|
|
MAX_FEES_IN_PERCENT: MAX_FEES_IN_PERCENT,
|
|
};
|
|
}
|
|
|
|
module.exports = getConstants;
|