Skip to content

added tama_meme_dex #8002

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

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

sandeshsk12
Copy link

@sandeshsk12 sandeshsk12 commented Apr 9, 2025

Thank you for contributing to Spellbook 🪄

Please open the PR in draft and mark as ready when you want to request a review.

Description:

Tama.meme is the first-ever fair-launch platform on Ronin, offering a decentralized way to launch and trade tokens. With a 1% fee on trades, users can pick tokens, buy them through a bonding curve, sell for gains or losses, and, if successful, move to Katana (DEX) for wider trading. The platform also includes a referral program to save on fees and earn rewards.


quick links for more information:

@github-actions github-actions bot added WIP work in progress dbt: dex covers the DEX dbt subproject labels Apr 9, 2025
@sandeshsk12 sandeshsk12 marked this pull request as ready for review April 9, 2025 20:15
@github-actions github-actions bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Apr 9, 2025
@Hosuke Hosuke self-assigned this Apr 11, 2025
@@ -150,3 +150,4 @@ logs/
!target/sources.json

dbt_subprojects/dex/spellbook-env/
dbt_subprojects/dex/dbt_cloud.yml
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to recover this file.

Comment on lines +11 to +17
WITH ronin_price AS (
SELECT
hour,
median_price AS ron_price
FROM {{ source('dex', 'prices') }}
WHERE contract_address = 0xe514d9deb7966c8be0ca922de8a064264ea6bcd4
),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This may not be the correct approach to implement a base_trades spell,
please read the document first:
https://github.com/duneanalytics/spellbook/blob/main/dbt_subprojects/dex/models/trades/readme.md

ON bet.token = tc.token
LEFT JOIN ronin_price AS rp
ON DATE_TRUNC('hour', bet.call_block_time) = rp.hour
WHERE call_block_time >= TRY_CAST('2025-01-21 14:07' AS TIMESTAMP)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The constant date and addresses can be introduced as jinja vars.

@jeff-dude jeff-dude marked this pull request as draft April 12, 2025 19:02
@github-actions github-actions bot added WIP work in progress and removed ready-for-review this PR development is complete, please review labels Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dbt: dex covers the DEX dbt subproject WIP work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants