Skip to content

Goal #1

@scglenn

Description

@scglenn

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();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions