Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chainlink gas station + monitoring for Chainlink Automation #1120

Closed
5 of 8 tasks
gosuto-inzasheru opened this issue Jul 1, 2024 · 2 comments
Closed
5 of 8 tasks
Assignees

Comments

@gosuto-inzasheru
Copy link
Collaborator

gosuto-inzasheru commented Jul 1, 2024

https://docs.google.com/spreadsheets/d/1llp09QrN1cdMTMQP9rLplYfpaiFIJ-Hn3C4z-07aFQE/

  • 1: Decommision all V1 automations, and move everything To v2.1 automation using the omnichain safe.
  • 2: Recover all the link (some may be with eoas, its' a big of a goose chase)
  • 3: Monitoring
    • live balance
    • omnichain
    • minimum balance
    • cl upkeep url
  • 4: Set max gwei for upkeeps
@gosuto-inzasheru
Copy link
Collaborator Author

  /**
   * @dev calculates LINK paid for gas spent plus a configure premium percentage
   */
  function _calculatePaymentAmount(
    uint256 gasLimit,
    uint256 gasWei,
    uint256 linkEth
  ) private view returns (uint96 payment) {
    uint256 weiForGas = gasWei * (gasLimit + REGISTRY_GAS_OVERHEAD);
    uint256 premium = PPB_BASE + s_storage.paymentPremiumPPB;
    uint256 total = ((weiForGas * (1e9) * (premium)) / (linkEth)) + (uint256(s_storage.flatFeeMicroLink) * (1e12));
    if (total > LINK_TOTAL_SUPPLY) revert PaymentGreaterThanAllLINK();
    return uint96(total); // LINK_TOTAL_SUPPLY < UINT96_MAX
  }

@gosuto-inzasheru gosuto-inzasheru changed the title Chainlink gas station + monitoring for Chainlink Automatin Chainlink gas station + monitoring for Chainlink Automation Jul 22, 2024
@gosuto-inzasheru
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants