I am new to ethereum blockchain, and i have following scenario of simple money exchange to be implemented:
- Consider three account Sender(USD), Receiver(EURO) and Provider. Where provider is account from which the smart contract will be deployed.
- We need to transfer fund from Sender account to Receiver account using the smart contract deployed taking into account the exchange rates.
- For showcasing the same a simple UI for manipulating EXCHNG rates, for sending the amount from one to other and for displaying the balance of both the accounts will be created.
For doing this i used Mist wallet, whereas the smart contract cannot do a transaction which involves transfer of ether from one account to another.
What should be the approach if this has to be achieved using smart contracts? Is there any other way the same can be achieved? Anything will be helpful.