mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
feat: provider premium + buffer at 12 percent
This commit is contained in:
parent
3bff63707d
commit
63cd6daa42
|
@ -48,7 +48,7 @@ contract ConnectGelatoDataForFullRefinance is ConnectorInterface {
|
||||||
uint256 internal immutable _id;
|
uint256 internal immutable _id;
|
||||||
address internal immutable _connectGelatoProviderPayment;
|
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) {
|
constructor(uint256 id, address connectGelatoProviderPayment) {
|
||||||
_id = id;
|
_id = id;
|
||||||
|
|
|
@ -69,7 +69,7 @@ contract ConnectGelatoDataForPartialRefinance is ConnectorInterface {
|
||||||
uint256 internal immutable _id;
|
uint256 internal immutable _id;
|
||||||
address internal immutable _connectGelatoProviderPayment;
|
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) {
|
constructor(uint256 id, address connectGelatoProviderPayment) {
|
||||||
_id = id;
|
_id = id;
|
||||||
|
|
|
@ -180,7 +180,7 @@ describe("Full Debt Bridge refinancing loan from Maker to Compound", function ()
|
||||||
//#region EXPECTED OUTCOME
|
//#region EXPECTED OUTCOME
|
||||||
|
|
||||||
const gasFeesPaidFromCol = ethers.utils
|
const gasFeesPaidFromCol = ethers.utils
|
||||||
.parseUnits(String(1490779 + 14908 * 2), 0)
|
.parseUnits(String(1490779 + 14908 * 12), 0)
|
||||||
.mul(gelatoGasPrice);
|
.mul(gelatoGasPrice);
|
||||||
const debtOnMakerBefore = await contracts.makerResolver.getMakerVaultDebt(
|
const debtOnMakerBefore = await contracts.makerResolver.getMakerVaultDebt(
|
||||||
vaultId
|
vaultId
|
||||||
|
|
|
@ -185,7 +185,7 @@ describe("Full Debt Bridge refinancing loan from ETH-A to ETH-B", function () {
|
||||||
//#region EXPECTED OUTCOME
|
//#region EXPECTED OUTCOME
|
||||||
|
|
||||||
const gasFeesPaidFromCol = ethers.utils
|
const gasFeesPaidFromCol = ethers.utils
|
||||||
.parseUnits(String(1490779 + 14908 * 2), 0)
|
.parseUnits(String(1490779 + 14908 * 12), 0)
|
||||||
.mul(gelatoGasPrice);
|
.mul(gelatoGasPrice);
|
||||||
const debtOnMakerBefore = await contracts.makerResolver.getMakerVaultDebt(
|
const debtOnMakerBefore = await contracts.makerResolver.getMakerVaultDebt(
|
||||||
vaultAId
|
vaultAId
|
||||||
|
|
Loading…
Reference in New Issue
Block a user