oraclesorg / treasury

Treasury is a solidity contract for Cross Chain Crowdsale where buyers can exchange tokens for coins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binding token and treasury.

lorien opened this issue · comments

At the moment Treasury contract has initialize method that sets up token address and token/ether excachange rate. That implies that token contract was created before treasury. But token contract also should know address of treasury contract to send transfer signal if tokens are transferring to the treasury address.
Should token contract also have initialize method?

Yes, I think so. Maybe, let’s call it setTreasury? And owner can set it multiple times. And add public property treasury, which will store treasury address?

@akolotov what do you think?

I've implemented setTreasury method so far. Will update it if you suggest another solution.