the fee payer is all ways the sender,
the messages route in jetton transfer
wallet1 > jetton-wallet1 > jetton-wallet2 > wallet1
so wallet1 had to pay gas for all future messages
in case wallet1 paid too much gas the gas change will be sent back to wallet1 ( via the excess message)
this way you dont have to estimate the gas fee exactly.
Jul 26, 2022, 6:20 AM
Thanks!
Does TON plan to make this possible? For example, on the Solana network, you can do this.
Jul 26, 2022, 9:12 AM
you can implement this method
but you will have to make sure the contract pays gas only for transactions from known addresses
otherwise it is a vurneabilty
Jul 26, 2022, 10:02 AM
Tell me how can I specify the contract as a gas payer. I have a whitelist of addresses. Thanks 🙏!
Jul 26, 2022, 11:51 AM
basically using recv external means the contract pays the gas fees
in order to white list the users public key
you need to to add them to the contract state while deploying the wallet ( adding to state init )
not sure how many users you plan this for
in order to white list the users public key
you need to to add them to the contract state while deploying the wallet ( adding to state init )
not sure how many users you plan this for
the architecture is similar to a wallet with multiple owners
Jul 26, 2022, 1:01 PM
Do you have any example? I would be very grateful.
Jul 26, 2022, 5:13 PM