Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Add pre-buy and post-buy hooks #75

Open
tspoff opened this issue Jan 20, 2020 · 0 comments
Open

Add pre-buy and post-buy hooks #75

tspoff opened this issue Jan 20, 2020 · 0 comments
Assignees
Milestone

Comments

@tspoff
Copy link
Collaborator

tspoff commented Jan 20, 2020

  • Allows for arbitrary logic contracts that are hooked into before and after the buy function

These allow dynamic expansions of bonding curve functionality.

  • It calls the external hook contracts in a loop on the given event.
  • There are no parameters passed in at the moment, but we could serialize and deserialize a bytes array.
  • They are capable of reverting the contract or modifying the bonding curve contract variables.
@tspoff tspoff added this to the 1.x milestone Feb 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants