Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMC: missing notary deposit #80

Closed
hwwhww opened this issue Apr 23, 2018 · 10 comments
Closed

SMC: missing notary deposit #80

hwwhww opened this issue Apr 23, 2018 · 10 comments

Comments

@hwwhww
Copy link
Collaborator

hwwhww commented Apr 23, 2018

What is wrong?

It seems the balance storage is forgotten...? But might only worthwhile to fix if there will be slashing condition for the notaries. Right now I just add it to backlogs, not a high priority.

How can it be fixed

notary_registry: should be notary_registry: {deregistered: int128, pool_index: int128, deposit: wei_value}[address].

notary_registry: {
deregistered: int128,
pool_index: int128
}[address]

When release_notary: should return the balances instead of NOTARY_DEPOSIT:

send(msg.sender, self.NOTARY_DEPOSIT)

@hwwhww hwwhww changed the title SMC: missing notary balance SMC: missing notary deposit Apr 25, 2018
@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.08 ETH (58.27 USD @ $728.39/ETH) attached to it.

@gitcoinbot
Copy link

gitcoinbot commented May 15, 2018

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 8 months, 4 weeks ago.
Please review their action plans below:

1) dilatebrave has started work.

I will keep informed every few days

Learn more on the Gitcoin Issue Details page.

@hwwhww
Copy link
Collaborator Author

hwwhww commented May 15, 2018

Hi @dilatebrave!
This ticket has two parts:

  1. Update Vyper code:
    • Adding deposit: wei_value field in notary_registry to store the deposit size. (msg.value)
    • Updating logic that related to deposit, refund deposit when release_notary.
  2. Upload json file bytecode

Note that Vyper version we are using is:

git+git://github.com/ethereum/vyper.git@044d1565df370cd31c00fc7fb728672647f39cf2

Thanks! Feel free to ask question here.

@dilatebrave
Copy link

dilatebrave commented May 15, 2018

@hwwhww --- thanks a lot
but i can not view https://hackmd.io/s/BysXg663M

@hwwhww
Copy link
Collaborator Author

hwwhww commented May 15, 2018

@dilatebrave Sorry! We just updated the permission, can you view it now?

@dilatebrave
Copy link

@hwwhww --- thanks a lot ^^
my previous commit use https://vyper.readthedocs.io/en/latest/compiling-a-contract.html to compile, it looks like the result are the same so i think it done

@hwwhww
Copy link
Collaborator Author

hwwhww commented May 15, 2018

Thanks, @dilatebrave!

@vs77bb LGTM to pay @dilatebrave. 👍

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 0.08 ETH (58.66 USD @ $733.26/ETH) has been submitted by:

  1. @dilatebrave

@vs77bb please take a look at the submitted work:


@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 0.08 ETH (58.55 USD @ $731.87/ETH) attached to this issue has been approved & issued to @dilatebrave.

@vs77bb
Copy link

vs77bb commented May 15, 2018

@hwwhww Bounty funds have been released! Great work, @dilatebrave 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants