OriginProtocol / origin-js

We've moved to a monorepo: https://github.com/OriginProtocol/origin
MIT License
81 stars 33 forks source link

Affiliate whitelist #544

Closed nick closed 5 years ago

nick commented 5 years ago

First pull request? Read our guide to contributing

Checklist:

Description:

franckc commented 5 years ago

Sorry for being late to this conversation...

If we allow affiliate to be 0x0, won't the commission get stuck in escrow forever ?

cuongdo commented 5 years ago

@franckc that's exactly what's happening right now on master. we need to have an affiliate account on all networks and pass that through when calling makeOffer. I'm adding a contract-level safeguard so that we don't allow a non-zero commission if affiliate is 0x0

nick commented 5 years ago

Closing in favor of #548