Skip to content

Solidity: v1.1.0 (Mainnet)

Compare
Choose a tag to compare
@pdyraga pdyraga released this 02 Mar 14:43
· 1349 commits to main since this release
9ef09f0

solidity/v1.1.0 is the Ethereum mainnet release of two Solidity smart contracts supporting tBTC v1 sunsetting.

VendingMachineV2 (0xcE1F983c29f7A6C0C0dFA78C4D8Fe7bdfe026d4B) is used to exchange tBTC v1 to tBTC v2 in a 1:1 ratio during the process of tBTC v1 bridge sunsetting. The redeemer selected by the DAO based on the "TIP-027b tBTC v1: The Sunsetting" proposal will deposit tBTC v2 tokens into VendingMachineV2 so that outstanding tBTC v1 token owners can upgrade to tBTC v2 tokens. The redeemer will withdraw the tBTC v1 tokens deposited into the contract to perform tBTC v1 redemptions. The redeemer may decide to withdraw their deposited tBTC v2 at any moment in time. The amount withdrawable is lower than the amount deposited in case tBTC v1 was exchanged for tBTC v2. This contract is owned by the redeemer.

VendingMachineV3 (0x7570a2350183b4BdF7CA74faD3Fc19048E6437e6 ) is used to exchange tBTC v1 to tBTC v2 in a 1:1 ratio after the tBTC v1 bridge sunsetting is completed. Since tBTC v1 bridge will no longer work, it will not be possible to perform BTC redemption with tBTC v1 tokens. This contract allows tBTC v1 owners to upgrade to tBTC v2 without any deadline. This way, tBTC v1 tokens left on the market are always backed by Bitcoin. The governance will deposit tBTC v2 into the contract in the amount equal to tBTC v1 supply. The governance is allowed to withdraw tBTC v2 only if tBTC v2 left in this contract is enough to cover the upgrade of all tBTC v1 left on the market. This contract is owned by the governance.

The NPM package is available in the NPM registry as @keep-network/tbtc-v2@1.1.0


The commit hash for clean builds is 9ef09f055eeb0be8ee9672a908ed38f118d869ad.

Signatures of commit hash from the development team (verify these in the Keybase app):

  • @pdyraga
    BEGIN KEYBASE SALTPACK SIGNED MESSAGE. kXR7VktZdyH7rvq v5weRa0zk8SRO9e gN94erb57G43YvY asc2ypx7KtJhJpq tOozFkj38oOsDIQ 1KJPjp5ZhHlsX4p 7HDtN5j8f7tUsrh eNK2WRF0d6TityM ouyKUcqJ8o4YLPx GoglHOFvGdioPjj md89OSgAyGxJbDg gMbrrLcfSeb5lk0 Yk9wDDe0bn3tq45 pr3vfGp1S8fxu3r LdGyo0oRkw49euK zC6JPJeBlqzkkpo . END KEYBASE SALTPACK SIGNED MESSAGE.

  • @nkuba
    BEGIN KEYBASE SALTPACK SIGNED MESSAGE. kXR7VktZdyH7rvq v5weRa0zkUgHswq LONGnytauGuQ68W zKcm0YTewHXEGd3 2M8FiSegAU4U0cU XCzG3QTFgEM44t8 NFfr3TG9BvPyAN1 en3OkI14eQcd8WQ excbGzhs1PKR0Pm Daozr3aUfqaPhgd 03wgQ8CrXkkDgS6 gfxITI5HuaMpX7w 94XwKMW6afz0bwd gT5iq6Qm7xkSMjM nBrPO0oRkw49euK zC6JPJeBlqzkkpo . END KEYBASE SALTPACK SIGNED MESSAGE.


Finally, note that the full set of work that went into the solidity/v1.1.0 version can be found in the corresponding solidity/v1.1.0 milestone.