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

fix: flickering debug for agents.fun #611

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

mohandast52
Copy link
Collaborator

@mohandast52 mohandast52 commented Dec 18, 2024

Proposed changes

  • agents.fun earned badge should not flicker

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)

@mohandast52 mohandast52 self-assigned this Dec 18, 2024
@mohandast52 mohandast52 added the bug Something isn't working label Dec 18, 2024
Math.ceil(nowInSeconds - tsCheckpoint),
),
]);
const isServiceStaked = serviceInfo[2].length > 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.

we were passing an empty array and the contract call was failing.

e Screen3M

@@ -48,7 +48,7 @@ export abstract class MemeooorBaseService extends StakedAgentService {
stakingTokenProxyContract.minStakingDeposit(),
stakingTokenProxyContract.tsCheckpoint(),
activityChecker.livenessRatio(),
activityChecker.getMultisigNonces(),
activityChecker.getMultisigNonces(agentMultisigAddress),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I checked the ABI, and it seems we’re supposed to pass the argument, which is the error I shared in the group. (Also, we were not catching hence moved inside "Try" block)

Screensh2PM

@mohandast52 mohandast52 marked this pull request as ready for review December 18, 2024 15:28
@mohandast52 mohandast52 merged commit 18f5b2b into tanya/fix-flickering Dec 18, 2024
4 of 5 checks passed
@mohandast52 mohandast52 deleted the mohan/flickering-debug branch December 18, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants