notrustverify / tipALPH

A tipping bot for the Alephium blockchain. Developed by No Trust Verify
https://t.me/tipALPHBot
GNU General Public License v3.0
2 stars 2 forks source link

Withdraw all #25

Closed sven-hash closed 3 months ago

sven-hash commented 8 months ago

Would it be interesting to be able to withdraw everything in one /withdraw command ?

Something like /withdraw <address> and then the user will have all of his tokens + ALPH withdrawed

amadeous commented 8 months ago

Would need to edit regex to allow "all" instead of amount and token. Then call new method in alephium.ts, doing sth similar to https://github.com/alephium/alephium-web3/blob/master/test/exchange.test.ts#L60