Programmatically reissue waves token

Hi… I’m looking for a way to automate token issuing/burning . My idea is to use Waves to create a stable coin. It would be indexed to a fiat money held in a account. I’m looking for a way to automate token creation (on deposits to this account) and token buring (on withdraws). Can It be done in waves platform ? Are there any resources You can point me to ?

One approach I Though would be to issue a specific amount ou tokens and then automate transaction between walets. But the creation/burning process would need to be manual anyway… Any workarounds would be appreciated as well. Thank You