RigoBlock / contracts

[DEPRECATED] directory of our contracts
Apache License 2.0
1 stars 0 forks source link

buyVaultOnBehalf #7

Closed gabririgo closed 6 years ago

gabririgo commented 6 years ago

implement function buy vault on behalf. logic: allow trader to transfer from exchange to his wallet and allocate vault shares for different clients

modificare codice cosi:

function buyVault() buyVaultOnBehalf(msg.sender, null?);

function buyVaultOnBehalf(address _buyer, string mnemonic) logic of current buyVault()

gabririgo commented 6 years ago

david's proposal:

store address of buyer as a hash rather than address:

logic: address of owner remains anonymous and user can always send a sell transaction, as the sell function would not be checked from msg.sender, but from the hash of msg.sender plus some other parameter

gabririgo commented 6 years ago

implemented. The address is not shown in the buy function, and in the event we show the address of the vault manager, hence no need to hash the address of the hodler. closing this