I've done little tests with the paymentSplitter code from OpenZeppelin and I don't seem to find a proper way to make it pay automatically. Gotta say that I'm a rookie at this and probably theres a stupid thing I'm missing
The PaymentSplitter contract uses the function release() so the wallets can pay the gas fee and claim their payment, but this is not worth for me as I want the received Ether to go to liquidity on 2 other coins-- And call a function right after
So my doubts may be pretty dumb but, is there a way to use the contract balance for gas fee? Then, create an event that executes the release function when a deposit is made?
Since I've read lots of documentation and I'm still nowhere near, I'd love some simple examples!
EDIT:
Today I found this video: https://www.youtube.com/watch?v=IVq3gR2L5Iw
This should work properly right? Is there any tip on setting the right gas price for 3 transactions?