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

Adjustments to the wallet proposal generator #3788

Merged
merged 5 commits into from
Mar 7, 2024

Conversation

lukasz-zimnoch
Copy link
Member

@lukasz-zimnoch lukasz-zimnoch commented Feb 22, 2024

Refs: keep-network/tbtc-v2#781
Depends on: keep-network/tbtc-v2#788 (the client-build-test-publish job will become green once 788 is merged and a new tbtc-v2@development package with RedemptionWatchtower artifact will be published to npm)

The optimistic redemption upgrade introduces a veto mechanism (keep-network/tbtc-v2#788) that enforces a processing delay on each redemption request. The exact delay value depends on the number of objections raised against the given redemption request. The WalletProposalValidator contract has been modified to include validation of that delay factor. The first change ed9c4ae introduces the same for the redemption proposal generator. This ensures the generator issues proposals that conform to the on-chain validation rules and coordination windows are not being wasted.

By the way, we are taking an opportunity to optimize the deposit sweep proposal generation. The WalletProposalValidator contract enforces the minimum age of a deposit that can become part of the proposal. The proposal generator
was missing this check and was often producing invalid proposals that were violating the on-chain minimum deposit age rule. We fix that in 55be487.

Here we re-generate tBTC contract bindings to catch recent upgrades
related to optimistic redemptions.
The optimistic redemption upgrade introduces a veto mechanism that
enforces a processing delay on each redemption request. The exact
delay value depends on the number of objections raised against the given
redemption request. The `WalletProposalValidator` contract has been
modified to include validation of that delay factor. Here we introduce
the same for the redemption proposal generator. This ensures the generator
issues proposals that conform the on-chain validation rules and coordination
windows are not being wasted.

See: keep-network/tbtc-v2#788
The `WalletProposalValidator` contract enforces the minimum age of a deposit
that can become part of the proposal. Right now, the proposal generator
misses this check and often produces invalid proposals that violate the
on-chain minimum deposit age rule. Here we fix that.
# Conflicts:
#	pkg/tbtcpg/chain_test.go
@tomaszslabon tomaszslabon merged commit 0a488cc into main Mar 7, 2024
29 checks passed
@tomaszslabon tomaszslabon deleted the or-tbtcpg-adjustments branch March 7, 2024 10:38
@lukasz-zimnoch lukasz-zimnoch added this to the v2.0.0 milestone Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants