dividend pathway

Loading...
init:
  # *** An Ethereum smart contract to create and update dividend pathways"
  # First, store buyer's ethereum address:
  contract.storage["BUYER"] = 0x6af26739b9ffef8aa2985252e5357fde
  # Then, store buyer's dividendRate
  contract.storage["BUYER_DIVIDENDRATE"] = msg.data[0]
  # Then, store seller's ethereum address:
  contract.storage["SELLER"] = 0xfeab802c014588f08bfee2741086c375
  # Then, create dividend pathway
  contract.storage["DIVIDEND_PATHWAY"] = msg.value
code:
  # If the account recieves dividends:
  if tx.origin == "BUYER":
    # ... then decrease the dividend pathway
    contract.storage["DIVIDEND_PATHWAY"] = (contract.storage["DIVIDEND_PATHWAY"] - msg.value)

Serpent contract for Ethereum

http://resilience.world

Preferences

Note: Your changes won't be saved, because not Logged-in.

Create your own Contract