feat: provider premium + buffer at 12 percent

This commit is contained in:
gitpusha 2020-11-03 15:36:12 +01:00 committed by Twin Fish
parent 3bff63707d
commit 63cd6daa42
4 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ contract ConnectGelatoDataForFullRefinance is ConnectorInterface {
uint256 internal immutable _id;
address internal immutable _connectGelatoProviderPayment;
uint256 public constant GAS_COST = 1490779 + (14908 * 2); // 1490779 + ~2% (Estimated Value)
uint256 public constant GAS_COST = 1490779 + (14908 * 12); // 1490779 + ~12% (Estimated Value)
constructor(uint256 id, address connectGelatoProviderPayment) {
_id = id;

View File

@ -69,7 +69,7 @@ contract ConnectGelatoDataForPartialRefinance is ConnectorInterface {
uint256 internal immutable _id;
address internal immutable _connectGelatoProviderPayment;
uint256 public constant GAS_COST = 1490779 + (14908 * 2); // 1490779 + ~2% (Estimated Value)
uint256 public constant GAS_COST = 1490779 + (14908 * 12); // 1490779 + ~12% (Estimated Value)
constructor(uint256 id, address connectGelatoProviderPayment) {
_id = id;

View File

@ -180,7 +180,7 @@ describe("Full Debt Bridge refinancing loan from Maker to Compound", function ()
//#region EXPECTED OUTCOME
const gasFeesPaidFromCol = ethers.utils
.parseUnits(String(1490779 + 14908 * 2), 0)
.parseUnits(String(1490779 + 14908 * 12), 0)
.mul(gelatoGasPrice);
const debtOnMakerBefore = await contracts.makerResolver.getMakerVaultDebt(
vaultId

View File

@ -185,7 +185,7 @@ describe("Full Debt Bridge refinancing loan from ETH-A to ETH-B", function () {
//#region EXPECTED OUTCOME
const gasFeesPaidFromCol = ethers.utils
.parseUnits(String(1490779 + 14908 * 2), 0)
.parseUnits(String(1490779 + 14908 * 12), 0)
.mul(gelatoGasPrice);
const debtOnMakerBefore = await contracts.makerResolver.getMakerVaultDebt(
vaultAId