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

Add Hipo staking #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add Hipo staking #5

wants to merge 1 commit into from

Conversation

behrang
Copy link

@behrang behrang commented Dec 18, 2024

Added the support for white-listing "Hipo Treasury" and "Hipo Jetton Wallet" for a vesting contract by the sender.

After being white-listed, the owner will see Stake/Unstake buttons that help the user to send the correct messages to Hipo.

The code is very similar to Tonstakers changes, but here are two main notable differences:

  1. To force the display of Hipo Jetton Wallet as bounceable, a local storage item is set manually to prevent it showing in unbounceable form when it is uninstialized, which is usually the case, since the jetton wallet is not yet created. This is also set for Tonstakers, so its jetton wallet will also be displayed as bounceable, and its badge will be displayed correctly.

  2. In the checkSmartContract function, Hipo addresses are first checked, to improve their display in the "Add Whitelist" popup, and also prevent the slow calculation of hash of Hipo Treasury code, which was causing the UI to freeze for more than 30 seconds, and the browser prompting to kill the JS code.

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.

1 participant