I’m just a curious soul learning by doing. But im wrecking my brain around how to do this.
A smart contract that automatically receives a token and sends a different token at a 1:1 ratio.
Additional features i may want to implement are changing the ratio, and charging a transaction fee.
I’m not trying to build an exchange as there is no need for liquidity. just a simple 3rd party contract to distribute tokenA to addresses that sends tokenB to contract.
would erc777 be the standard i’m looking to use?
Any resources i can look at or anyone able to point me in the right direction? Help is much appreciated.