——————————————————————
All contracts published by Keep Team can be found here:
https://github.com/keep-network/tbtc-v2/releases
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.
—
04/27/2023 (in discord)
The v2 guide is now obsolete (I've drained the contract). But Vending Machine v3 is live and partially funded, (currently about 3 tBTC v2 left) so it's now possible to exchange tBTC v1 to tBTC v2 with it.
TBTC v1 token: 0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa
TBTC v2 token: 0x18084fba666a33d37592fa2633fd49a74dd93a88
Vending Machine V3: 0x7570a2350183b4BdF7CA74faD3Fc19048E6437e6
<aside> 📖
Step-by-step guide for users to swap v1 for v2 in the VMv3:
Go to tBTC v1 contract (https://etherscan.io/address/0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa#writeContract), write to approve: Spender: 0x7570a2350183b4BdF7CA74faD3Fc19048E6437e6 Value: 10000000000000000 (or whatever you prefer - this example is using 0.01 tBTC)
Go to vending machine contract (https://etherscan.io/address/0x7570a2350183b4BdF7CA74faD3Fc19048E6437e6#writeContract), write to exchange: Value: 10000000000000000
You'll receive tBTC v2 in 1:1
PS: To get the value you can use something like https://eth-converter.com/ (enter your tBTC amount in ether and copy wei field)
Or get your full balance by going to https://etherscan.io/address/0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa#readContract and enter your address under BalanceOf
To verify the validity of the address I've posted, you can double check on github: https://github.com/keep-network/tbtc-v2/releases/tag/solidity%2Fv1.1.0
</aside>
Instructions For FUNDING the VMv3 with tBTCv2 by PIOTR (ABR2023 in TTG tg):
Yes, you need to approve and then depositTbtcV2
( https://github.com/keep-network/tbtc-v2/blob/main/solidity/contracts/bridge/VendingMachineV3.sol#L79 ).
Anyone can call it. Bear in mind only owner can recover funds and The owner 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 (the token supply is checked).