-
Notifications
You must be signed in to change notification settings - Fork 2
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
Lw/6242 fix hh tasks v2 #145
base: automation_v2
Are you sure you want to change the base?
Conversation
console.log(!activeTriggerIds.length) | ||
console.log('Array.isArray(activeTriggerIds) && activeTriggerIds.length !== 0') | ||
console.log(Array.isArray(activeTriggerIds) && activeTriggerIds.length !== 0) | ||
triggerIdToReplace = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was returning -Infinity for an empty array
How to testTry adding all types of triggers for vault you own on goerli. Here are example command calls and transactions. Stop loss to coll
Stop Loss to DAI
Auto buy
Auto sell
Take Profit to Collateral
Take Profit to DAI
Test pessimistic scenarios for example not existing triggerIDs expect clear error message
beware gas estimation issues etc |
adding buy and sell trigger is fixed
output of
npx hardhat create-trigger --vault 433 --type 3 --params '[40000,30000,'0',true,100,200]' --network goerli
npx hardhat create-trigger --vault 433 --type 4 --params '[40000,30000,'0',true,100,200]' --network goerli
TBD fix for creating all the triggers