Skip to content

Signer bonds escrow#39

Merged
pdyraga merged 17 commits intomainfrom
signer-bonds-escrow
May 19, 2021
Merged

Signer bonds escrow#39
pdyraga merged 17 commits intomainfrom
signer-bonds-escrow

Conversation

@lukasz-zimnoch
Copy link
Copy Markdown
Member

@lukasz-zimnoch lukasz-zimnoch commented May 6, 2021

Depends on: #26

ETH purchased by the risk manager from tBTC signer bonds needs to be swapped and deposited back to the coverage pool as collateral. In the case it can not be done automatically, the governance has the power to ask the risk manager to deposit ETH from purchased signer bonds into an escrow the governance can later withdraw from and do the swap manually. SignerBondsEscrow is a simple escrow implementation allowing the risk manager to store purchased ETH signer bonds so that governance can later swap them manually and deposit as coverage pool collateral.

This change adds a signer bonds escrow strategy
which holds the bonds withdrawn by the risk
manager and allows the governance to transfer
them to an arbitrary account.
@lukasz-zimnoch lukasz-zimnoch requested a review from a team May 6, 2021 13:26
Added tests which check whether the risk manager
processes the signer bonds in a correct way
and triggers a processing strategy.
@lukasz-zimnoch
Copy link
Copy Markdown
Member Author

lukasz-zimnoch commented May 7, 2021

Ready for review. Will undraft once #26 lands on main.

Base automatically changed from collecting-tbtc-signer-bonds to main May 12, 2021 07:51
# Conflicts:
#	contracts/RiskManagerV1.sol
#	contracts/test/DepositStub.sol
#	test/RiskManagerV1.test.js
@lukasz-zimnoch lukasz-zimnoch marked this pull request as ready for review May 12, 2021 09:55
Comment thread contracts/RiskManagerV1.sol Outdated
Comment thread contracts/RiskManagerV1.sol Outdated
Comment thread contracts/SignerBondsEscrow.sol
Comment thread contracts/SignerBondsEscrow.sol Outdated
Comment thread contracts/SignerBondsEscrow.sol Outdated
Comment thread test/SignerBondsEscrow.test.js Outdated
Comment thread test/liquidation/liquidation.test.js Outdated
Comment thread test/RiskManagerV1.test.js Outdated
Comment thread contracts/SignerBondsEscrow.sol Outdated
@lukasz-zimnoch lukasz-zimnoch requested a review from pdyraga May 19, 2021 13:42
Comment thread contracts/RiskManagerV1.sol Outdated
Comment thread test/liquidation/liquidation.test.js Outdated
Comment thread test/liquidation/liquidation.test.js Outdated
@pdyraga pdyraga merged commit 42a416d into main May 19, 2021
@pdyraga pdyraga deleted the signer-bonds-escrow branch May 19, 2021 14:59
@pdyraga pdyraga added this to the solidity/v1.0.0 milestone Sep 15, 2021
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.

2 participants