-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: support funds by chain #631
Conversation
walletBalanceResult.evmChainId === selectedAgentConfig.evmHomeChainId, | ||
)?.balance; | ||
|
||
const isInitialFunded = storeState?.[selectedAgentType]?.isInitialFunded; | ||
if (service && isInitialFunded && isServiceStaked) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@truemiller can you please look at this code and the " // SERVICE IS STAKED, AND STARTING AGAIN"
section below and tell me if I'm right or not - it looks, that if a user runs the agent for the second time, the code will alway end up here, and no "threshold check" check will happen (to check if a user has enough gas for starting the agent)
also, here we check this: (serviceTotalStakedOlas ?? 0) >= requiredStakedOlas
but if a user staked already, their total staked will be more than required anyway, what sense does this make?
@@ -13,7 +13,7 @@ import { StakingProgramMap } from '.'; | |||
export const MODE_STAKING_PROGRAMS_CONTRACT_ADDRESSES: Record<string, Address> = | |||
{ | |||
[StakingProgramId.OptimusAlpha]: | |||
'0x534c0a05b6d4d28d5f3630d6d74857b253cf8332', | |||
'0x5fc25f50E96857373C64dC0eDb1AbCBEd4587e91', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was pointing to wrong Modius alpha, updated to the right one
08a0ff5
to
ef38a1e
Compare
Proposed changes
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that apply