mirror of
https://github.com/luxfi/emp.git
synced 2026-07-27 04:32:43 +00:00
feat: update core version and retrofit script to work with it (#9)
This commit is contained in:
@@ -58,13 +58,13 @@ if (argv.gasprice < 1 || argv.gasprice > 1000) throw "--gasprice must be between
|
||||
syntheticName: argv.syntheticName, // Long name.
|
||||
syntheticSymbol: argv.syntheticSymbol, // Short name.
|
||||
collateralRequirement: { rawValue: toWei("1.25") }, // 125% collateral req.
|
||||
disputeBondPct: { rawValue: toWei("0.1") }, // 10% dispute bond.
|
||||
sponsorDisputeRewardPct: { rawValue: toWei("0.05") }, // 5% reward for sponsors who are disputed invalidly.
|
||||
disputerDisputeRewardPct: { rawValue: toWei("0.2") }, // 20% reward for correct disputes.
|
||||
disputeBondPercentage: { rawValue: toWei("0.1") }, // 10% dispute bond.
|
||||
sponsorDisputeRewardPercentage: { rawValue: toWei("0.05") }, // 5% reward for sponsors who are disputed invalidly.
|
||||
disputerDisputeRewardPercentage: { rawValue: toWei("0.2") }, // 20% reward for correct disputes.
|
||||
minSponsorTokens: { rawValue: toWei(argv.minSponsorTokens.toString()) }, // Minimum sponsor position size.
|
||||
liquidationLiveness: 7200, // 2 hour liquidation liveness.
|
||||
withdrawalLiveness: 7200, // 2 hour withdrawal liveness.
|
||||
excessTokenBeneficiary: getAddress("Store", networkId), // UMA Store contract.
|
||||
financialProductLibraryAddress: "0x0000000000000000000000000000000000000000", // 0x0 because, by default, we don't want to use a custom library.
|
||||
};
|
||||
|
||||
const empCreator = new web3.eth.Contract(
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@truffle/hdwallet-provider": "^1.2.1",
|
||||
"@uma/core": "^1.2.2",
|
||||
"@uma/core": "^2.0.1",
|
||||
"minimist": "^1.2.5",
|
||||
"web3": "^1.3.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user