Skip to content

Conversation

@orenyodfat
Copy link
Contributor

This scheme behave like a "buffer" between 2 daos.

  1. It has an expiration time - after this time it's forwarding function is disable.
  2. It forward any call from one dao to other dao controller.

@orenyodfat orenyodfat requested a review from leviadam October 15, 2018 11:39
* @param _avatar the avatar of the dao to forward the call to
* @param _expirationTime the expirationTime to forwardCall
*/
function initialize(Avatar _avatar, uint _expirationTime) external onlyOwner {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here there is basically no "time bomb" as the owner can change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix 51552e6


contract Forwarder is Ownable {

Avatar public avatar;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Avatar?
Why not make generic and initialize some address.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the avatar is needed to call for unregisterSelf .
we can add another address to make it more generic though I am not sure it is needed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed. This is OK.

@orenyodfat orenyodfat merged commit 04d338b into master Oct 16, 2018
@leviadam leviadam deleted the forwarder branch October 31, 2018 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants