You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By a fee payback I mean that the starknet native fees should be paid back to the initiator of the starknet transaction.
If we want people to interact with kakarot with classic wallets we need to create an abstraction of starknet.
About fees
eth_estimateGas
This rpc method should return the kakarot gas cost + starknet gas cost. And then the kakarot contract when it receives the tx, burns the kakarot gas but pays back the starknet gas to the initiator (the rpc)
Why WETH
WETH will be better because no need to ask an oracle at each transaction the price of the token to pay the equivalent to the initiator And the tx could get stuck if the native token pumps so the weth provided by the user won't be sufficient after the estimate.
How WETH ?
I thought that we could create a mint solidity function only accessible to 0x0000... and starknet functions on the kakarot contract to wrap / unwrap. In the background the contract will call the WETH contract with a mint / burn tx with 0x0000 as sender.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
By a fee payback I mean that the starknet native fees should be paid back to the initiator of the starknet transaction.
If we want people to interact with kakarot with classic wallets we need to create an abstraction of starknet.
About fees
eth_estimateGas
This rpc method should return the kakarot gas cost + starknet gas cost. And then the kakarot contract when it receives the tx, burns the kakarot gas but pays back the starknet gas to the initiator (the rpc)
Why WETH
WETH will be better because no need to ask an oracle at each transaction the price of the token to pay the equivalent to the initiator And the tx could get stuck if the native token pumps so the weth provided by the user won't be sufficient after the estimate.
How WETH ?
I thought that we could create a mint solidity function only accessible to 0x0000... and starknet functions on the kakarot contract to wrap / unwrap. In the background the contract will call the WETH contract with a mint / burn tx with 0x0000 as sender.
That's all, will appreciate your feedback 😁
Beta Was this translation helpful? Give feedback.
All reactions