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

[ECO-2489] Add emojicoin arena Move prototype #408

Merged
merged 65 commits into from
Dec 20, 2024
Merged

[ECO-2489] Add emojicoin arena Move prototype #408

merged 65 commits into from
Dec 20, 2024

Conversation

alnoki
Copy link
Member

@alnoki alnoki commented Nov 22, 2024

Description

The emojicoin arena is a gamified experience where users deposit coins into escrow and trade between two emojicoins that are active in a "melee", which restarts every 36 hours with a new randomly selected combination of registered emojicoin markets. By depositing into escrow users can have their PnL tracked, and certain restrictions can be enforced, e.g. holding all melee deposits in one of two emojicoins, and holding through to the end of the melee ("locking in") if the user accepts rewards.

Note that the core design for review includes:

  1. Structs
  2. entry fun APIs (which rely on randomness to crank the schedule)
  3. Indexing logic

Checklist

  • Add README
  • Update this PR description one revisions incorporated
  • Did you check all checkboxes from the linked Linear task?

Copy link

vercel bot commented Nov 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
emojicoin-dot-fun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2024 7:47pm
emojicoin-dot-fun-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2024 7:47pm

Copy link

src/move/rewards/sources/emojicoin_dot_fun_arena.move Outdated Show resolved Hide resolved
src/move/rewards/sources/emojicoin_dot_fun_arena.move Outdated Show resolved Hide resolved
src/move/rewards/sources/emojicoin_dot_fun_arena.move Outdated Show resolved Hide resolved
src/move/rewards/sources/emojicoin_dot_fun_arena.move Outdated Show resolved Hide resolved
src/move/rewards/sources/emojicoin_dot_fun_arena.move Outdated Show resolved Hide resolved
src/move/rewards/sources/emojicoin_dot_fun_arena.move Outdated Show resolved Hide resolved
src/move/rewards/sources/emojicoin_dot_fun_arena.move Outdated Show resolved Hide resolved
src/move/rewards/sources/emojicoin_dot_fun_arena.move Outdated Show resolved Hide resolved
Copy link
Collaborator

@xbtmatt xbtmatt left a comment

Choose a reason for hiding this comment

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

I think we discussed today that you'd update the lock in functionality, so I expect some of this will change.

I personally think you could merge this in just so we can more clearly see the new changes for the lock in stuff when you add it, that way the PR doesn't become a monolith, since I think this effectively does cover the initial implementation / design specs, but I will just leave an approving review for you to decide!

@alnoki alnoki changed the title [ECO-2489] Emojicoin arena Move implementation [ECO-2489] Add emojicoin arena Move prototype Dec 20, 2024
@alnoki alnoki marked this pull request as ready for review December 20, 2024 19:43
@alnoki alnoki enabled auto-merge (squash) December 20, 2024 19:46
@alnoki alnoki merged commit a79759e into main Dec 20, 2024
7 checks passed
@alnoki alnoki deleted the ECO-2489 branch December 20, 2024 19:49
xbtmatt added a commit that referenced this pull request Dec 21, 2024
xbtmatt added a commit that referenced this pull request Dec 21, 2024
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.

3 participants