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

[WIP] feature: STON.fi integration #63

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

next0
Copy link

@next0 next0 commented Jan 23, 2025

No description provided.

@next0 next0 force-pushed the feature/stonfi-integration branch from 8a706f4 to 1ca01be Compare February 12, 2025 22:30
@@ -69,6 +69,9 @@
Chain.SOLANA: {
"w3": w3,
},
Chain.TON: {
Copy link
Author

Choose a reason for hiding this comment

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

hack: similar to the SOLANA chain, get a timestamp based on the Ethereum chain. see the get_block_date method below


def get_participants_data(self, block: int) -> Dict[str, float]:
# block timestamp format "2025-01-16T01:00:00"
target_date = get_block_date(block, self.chain, adjustment=3600, fmt="%Y-%m-%dT%H:%M:%S")
Copy link
Author

Choose a reason for hiding this comment

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

get_block_date supports Chain.TON under the hood

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.

2 participants