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

Tanya/needs funds main #476

Merged

Conversation

Tanya-atatakai
Copy link
Collaborator

@Tanya-atatakai Tanya-atatakai commented Nov 21, 2024

Proposed changes

  1. Update hasEnoughOlasForInitialFunding to support new masterSafeBalances
  2. some fixes for serviceFundRequirements to avoid repeating code
  3. Applied needed changes for MainNeedsFunds

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@Tanya-atatakai Tanya-atatakai changed the base branch from main to refactor/multi-chain-support-frontend November 21, 2024 14:49
].stakingRequirements.OLAS;
STAKING_PROGRAMS[+chainId]?.[stakingProgramId]?.stakingRequirements?.[
TokenSymbol.OLAS
] || 0;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had to add || 0 here b/c we map on serviceTemplate.configurations which for optimus will contain three chains, but we'll have stakingRequirements in STAKING_PROGRAM only for one chain leading to undefined on others.

maybe makes sense to reconsider the serviceFundRequirements logic, we need native tokens on different chains, but olas for staking only on one. but at the moment this approach feels the most logical

@Tanya-atatakai Tanya-atatakai merged commit 96cafe0 into refactor/multi-chain-support-frontend Nov 21, 2024
2 of 4 checks passed
@Tanya-atatakai Tanya-atatakai deleted the tanya/needs-funds-main branch November 21, 2024 15:43
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

Successfully merging this pull request may close these issues.

3 participants