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

Goal #1

Open
scglenn opened this issue Sep 12, 2022 · 0 comments
Open

Goal #1

scglenn opened this issue Sep 12, 2022 · 0 comments

Comments

@scglenn
Copy link

scglenn commented Sep 12, 2022

A library that uses the top subgraphs, people can enter their rule set via the library and sends a response to their configured zapier webhook url when conditions are met.
Allow for contract execution in the library also, prebuilt functions that perform swap on dex etc

Expectation:

const library = new DefiZapier();

library.setZapierUrl(https://....)

const rules = (data) => {
  if(data.token0.volume > 100){
    const zapierPayload = {
      log: "volume threshold hit"
    }
    return zapierPayload;
  } 
  return;
}

library.setRules([rules]);

while( true) {
   await library.run();
}
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

No branches or pull requests

1 participant