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