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

ETH Delegating #483

Merged
merged 59 commits into from
Nov 2, 2020
Merged

ETH Delegating #483

merged 59 commits into from
Nov 2, 2020

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented Jun 17, 2020

This PR implements ETH Delegating that will be integrated into ECDSA Keeps.

ETHDelegating contract is a very basic draft of the contract that will evolve as we integrate it with Keep Factory. We need delegation details like: beneficiary and authorizer for the given operator. The idea is that the owner will call delegate function providing these details so they can be later used for bonding.

TODO:

  • Determine mainnet value for minimum value to be deposited on delegation
  • Decide whether we want to have a setter for the value above or just hardcode it in the contract

Refs: #271
Depends on keep-network/keep-core#1873
Depends on #525
Depends on keep-network/sortition-pools#89

@mhluongo
Copy link
Member

@nkkuba should this be against no-beneficiary-withdraw?

@nkuba nkuba changed the base branch from master to no-beneficiary-withdraw June 17, 2020 15:19
@nkuba nkuba requested a review from pdyraga June 22, 2020 14:04
@nkuba nkuba self-assigned this Jun 22, 2020
Base automatically changed from no-beneficiary-withdraw to master June 30, 2020 07:52
@nkuba nkuba marked this pull request as ready for review August 7, 2020 14:45
@nkuba nkuba changed the base branch from master to abstract-bonding August 11, 2020 09:20
@nkuba nkuba requested a review from pdyraga August 11, 2020 20:49
@nkuba nkuba force-pushed the abstract-bonding branch 4 times, most recently from aa0503f to 0befc5c Compare August 11, 2020 22:20
@nkuba nkuba force-pushed the eth-bonding branch 4 times, most recently from f94a068 to af542f4 Compare August 12, 2020 09:01
Base automatically changed from abstract-bonding to master August 12, 2020 11:03
solidity/contracts/ETHStaking.sol Outdated Show resolved Hide resolved
solidity/contracts/ETHStaking.sol Outdated Show resolved Hide resolved
solidity/contracts/ETHStaking.sol Outdated Show resolved Hide resolved
solidity/contracts/ETHStaking.sol Outdated Show resolved Hide resolved
solidity/contracts/ETHStaking.sol Outdated Show resolved Hide resolved
solidity/contracts/ETHBonding.sol Outdated Show resolved Hide resolved
solidity/contracts/ETHBonding.sol Outdated Show resolved Hide resolved
solidity/contracts/ETHStaking.sol Outdated Show resolved Hide resolved
solidity/contracts/ETHStaking.sol Outdated Show resolved Hide resolved
solidity/contracts/ETHStaking.sol Outdated Show resolved Hide resolved
@nkuba nkuba requested a review from pdyraga October 30, 2020 16:10
@nkuba nkuba requested a review from pdyraga November 2, 2020 12:19
We defined a `topUp` function in `FullyBackedBonding` contract. This
function should be used when adding new value for bonding. We emitt
an additional event to clearly find value that has been deposited. The
`deposit` function defined in the abstract contract can be used also by
applications that return part of seized value to the contract. This
made calculation of totally deposited value much more difficult.
@nkuba nkuba requested a review from pdyraga November 2, 2020 13:17
@pdyraga pdyraga merged commit 28df027 into master Nov 2, 2020
@pdyraga pdyraga deleted the eth-bonding branch November 2, 2020 13:31
@pdyraga pdyraga added this to the solidity/v1.4.0 milestone Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants