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

ABC Improvements #818

Merged
merged 22 commits into from
May 14, 2024
Merged

ABC Improvements #818

merged 22 commits into from
May 14, 2024

Conversation

ismellike
Copy link
Contributor

@ismellike ismellike commented Apr 3, 2024

#697 Extension of this PR

  • Use a map for HATCHER_ALLOWLIST
  • Clean up state when going from Hatch -> Open
  • Various spell-checking fixes
  • Allow an existing tokenfactory token - reverted
  • Implement a circuit breaker
  • Add a new method to donate into the reserve from comment - reverted
  • Add transparency around initial token config - reverted
  • Fix logic around auto-sending funding pool from comment
  • Move curves into cw-curves package
  • Allow hatcher allowlist by DAO membership

Also cleans up state when going from Hatch -> Open
Various spell-checking fixes
@ismellike ismellike marked this pull request as draft April 3, 2024 23:45
@ismellike ismellike changed the title Make hatcher_allowlist a map ABC Improvements Apr 3, 2024
I think it's important for an existing token to be supported by an ABC.
Token DAO's will be able to set up liquidity more easily by simply allowing mint & burn functionality after instantiating the ABC while holding ownership of it.

*Also adds a query for hatcher allowlist
*fixes spell checks I ran into
*moves TokenInfo from dao-voting-token-staked to dao-interface for use in cw-abc
Renamed fees_recipient to funding_pool_forwarding for better naming
Made funding_pool_forwarding optional
Allow updating the funding_pool_forwarding by owner
Allow withdrawing from the funding pool by owner
Adds IS_PAUSED state that is checked in execute entry
Also fixes naming in commands
Also fixes donation state being lost after multiple donations
@ismellike ismellike marked this pull request as ready for review April 10, 2024 02:07
Could use a test here
Also fixes some warnings and flag for cw-std
also reorg buy command to be closer to sell command for readability
@ismellike ismellike marked this pull request as draft April 22, 2024 22:58
Derive copy on DecimalPlaces
Catch OverflowError directly in ContractError
Do not set initial supply as supply - will further remove allowing initial supplies
@ismellike ismellike marked this pull request as ready for review April 23, 2024 18:02
Copy link
Member

@JakeHartnell JakeHartnell left a comment

Choose a reason for hiding this comment

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

LFG!

@JakeHartnell
Copy link
Member

JakeHartnell commented Apr 28, 2024

Running just gen will update the contract schemas and fix those linting errors.

Also removes unused deps from cw-abc which now live in cw-curves
@ismellike
Copy link
Contributor Author

Shoutout to @BHIIKTOR btw for noticing unnecessary packages and aliases after moving things to cw-curves package

@ismellike
Copy link
Contributor Author

ismellike commented May 8, 2024

I still want to squeeze in a couple of things.

  • Buy and sell quotes (how many tokens will a user receive from x amount)
  • MinMax contribution limit override by hatcher config

Let users know the curve state and returned amount after x payment
Disallow selling in the hatch phase
Do not validate max_contribution against max_raise
@ismellike
Copy link
Contributor Author

this is ready 🔥

@JakeHartnell JakeHartnell merged commit f656e8a into DA0-DA0:cw-abc May 14, 2024
3 of 4 checks passed
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.

None yet

2 participants