We need a smart contract (on chain, in bnsd entity) that, when sent tokens, reads the termdeposit configuration, performs some calculations, and sends tokens based on the calculations.
The flow of tokens to which this issue refers is Reward Account -> smart contract -> Depositors. This issue is only about creating the scaffolding and is not intended for production deployment, so if we can just have the smart contract read the termdeposit configuration and distribute equal proportions of the sent tokens to the addresses with a CustomRate in the config then we'll be all set.
Goal:
Smart contract should be able to read configuration and distribute tokens that are sent to it.
We need a smart contract (on chain, in bnsd entity) that, when sent tokens, reads the
termdepositconfiguration, performs some calculations, and sends tokens based on the calculations.The flow of tokens to which this issue refers is
Reward Account-> smart contract ->Depositors. This issue is only about creating the scaffolding and is not intended for production deployment, so if we can just have the smart contract read thetermdepositconfiguration and distribute equal proportions of the sent tokens to the addresses with aCustomRatein the config then we'll be all set.Goal:
Smart contract should be able to read configuration and distribute tokens that are sent to it.