feat: update core version and retrofit script to work with it (#9)

This commit is contained in:
Matt Rice
2021-02-26 22:55:06 -05:00
committed by GitHub
parent c1b806f285
commit 52e037e095
3 changed files with 2269 additions and 72 deletions
+4 -4
View File
@@ -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
View File
@@ -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"
}
+2264 -67
View File
File diff suppressed because it is too large Load Diff