Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Explore courtesy calls challenges #92

Closed
mhluongo opened this issue Apr 20, 2019 · 4 comments
Closed

Explore courtesy calls challenges #92

mhluongo opened this issue Apr 20, 2019 · 4 comments
Labels
🗣️ discussion Open discussion ⚙️ system-design Up-front system design
Milestone

Comments

@mhluongo
Copy link
Member

Rather than requiring a courtesy call to use the price feed, consider a griefing-proof mechanism that allows uncontested courtesy calls to avoid using a price feed. Only fall back to the feed in case a call is contested- in which case we need to punish the griefer.

This should save a bunch on gas done properly, since we can only require a populated price feed on challenges.

cc @prestwich

@NicholasDotSol
Copy link
Contributor

I like that, will need to add some restrictions to notifyCourtesyCall() to make sure the caller can be punished.
Challenge is claimGriefedCourtesyCall() will need to retrieve price at the timestamp set bynotifyCourtesyCall()

@prestwich
Copy link
Contributor

This requires management of another bond, which may break assumptions we've made around transfers. Of course, those all need to be reviewed and maybe rewritten anyway.

Suggested behavior: the notifier bond is in ETH. if the challenge proves baseless, the bond is distributed to the signers by adding it to their collateral pool.

Challenge is claimGriefedCourtesyCall() will need to retrieve price at the timestamp set bynotifyCourtesyCall()

this actually is a bigger challenge than it seems, @mhluongo. Do we use the price at challenge time? or the price at response time? If we use response time, the challenger may forfeit the bond despite having behaved honestly. If we use challenge time, we need a retroactive oracle price

@prestwich prestwich added the 🗣️ discussion Open discussion label Apr 22, 2019
@mhluongo mhluongo added the ⚙️ system-design Up-front system design label May 16, 2019
@mhluongo mhluongo changed the title Courtesy calls challenges Explore courtesy calls challenges Jun 16, 2019
@mhluongo
Copy link
Member Author

This seemed like a great idea initially, but an oracle that doesn't submit to the chain but can still prove old times is annoying- eg we'd be creating some sort of off-chain signature relay or hashchain that's optionally provable on challenge. The alternative is assuming a Schelling-based feed which has issues with parasitic interest.

Let's revisit this after mainnet

@mhluongo
Copy link
Member Author

Obsoleted by #254

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🗣️ discussion Open discussion ⚙️ system-design Up-front system design
Projects
None yet
Development

No branches or pull requests

3 participants