index.js 1.2 KB

123456789101112131415161718192021
  1. task("redeemLocal", "remove liquidity from Stargate ", require("./redeemLocal"))
  2. .addParam("targetNetwork", "the target network, ie: ethereum")
  3. .addParam("poolId", "the source poolId")
  4. .addParam("dstPoolId", "the destination poolId")
  5. // refund address is caller for simplicity
  6. .addOptionalParam("qty", "_amountLP to remove", 0, types.int)
  7. .addOptionalParam("all", "boolean indicating all paths or not")
  8. task("revertRedeemLocal", "in ABA withdraw initiated with redeemLocal, this is the B, ie: revertRedeemLocal", require("./revertRedeemLocal"))
  9. task("setDeltaParam", "local Router.setDeltaParam() for a poolId ", require("./setDeltaParam"))
  10. .addParam("poolId", "the source poolId")
  11. .addParam("batched", "batched. boolean", false, types.boolean)
  12. .addOptionalParam("swapDeltaBp", "swapDeltaBP", 0, types.int)
  13. .addOptionalParam("lpDeltaBp", "swapDeltaBP", 0, types.int)
  14. .addParam("defaultSwapMode", "boolean", false, types.boolean)
  15. .addParam("defaultLpMode", "boolean", false, types.boolean)
  16. task("sendSTG", "send some STG tokens to the address", require("./sendSTG"))
  17. .addParam("addr", "the address to transfer tokens to")
  18. .addParam("tokens", "the tokens in the form: 54.323 (the script takes care of decimals)")