Buttonwood
  • Buttonwood Basics
    • Introduction to Buttonwood
    • First Principles
    • FAQ
    • DeFi for Beginners
  • Learn
    • Glossary
    • Elastic Supply Assets
      • ButtonToken
      • UnbuttonToken
    • Tranche
      • Deposit Flow
      • Redemption Flow
    • ButtonZero
      • System Design
      • Lending
      • Borrowing
    • ButtonAuctions
    • ButtonSwap
      • Core Concepts
      • Pool Interactions
  • User Guides
    • ButtonSwap User Guide
      • Create a Pool
      • Swap
      • Add Liquidity
      • Remove Liquidity
    • ButtonZero User Guide
      • Primer
      • Borrow (Sell & Ask)
      • Lend (Buy & Bid)
      • Redemption
    • ButtonAuctions User Guide
      • Join an Auction
        • Redemptions
      • Create an Auction
      • Settle an Auction
      • Note on Rebasing Assets
    • Provide Liquidity on Uniswap
    • Mint Tranches
      • Mint Tranches via Contract
        • Minting AMPL Tranches
        • Minting ETH Tranches
        • Minting WBTC Tranches
        • Bond List
  • Developers
    • Deployed Contracts
      • Ethereum Mainnet
      • Görli Testnet
      • Kovan Testnet
      • Avalanche C-Chain
      • Base Mainnet
      • Arbitrum
      • Optimism
    • Tranche
      • Tranche
      • TrancheFactory
      • Bond
      • BondFactory
      • UniV3LoanRouter
    • Button Wrappers
      • ButtonToken
      • UnbuttonToken
      • ButtonTokenFactory
      • UnbuttonTokenFactory
    • Audits
    • Bug Bounty
  • Additional Resources
    • Apps
    • Github
    • Discord
    • Twitter
    • Website
    • ButtonZero
    • Zero Whitepaper
Powered by GitBook
On this page

Was this helpful?

  1. User Guides
  2. Mint Tranches
  3. Mint Tranches via Contract

Minting WBTC Tranches

PreviousMinting ETH TranchesNextBond List

Last updated 2 years ago

Was this helpful?

Instructions

1. Find the smart contract address for the WBTC bond you wish to mint tranche tokens for.

2. Open our smart contract on Etherscan, ideally in a new tab or window.

3. Select the "Contract" tab.

4. Select the "Write Contract" button.

5. Use the "Connect to Web3" button to connect your Web3 wallet.

6. Expand "3. wrapAndBorrow".

7. For the "underlyingAmount (uint256)" field, enter the amount of WBTC you would like to collateralize.

WBTC's contract has a 8-decimal point value. This means that 8 digits come after the decimal point. When inputting an amount ensure that you add enough digits to meet this requirement.

Example: 4.25 WBTC would be formatted as 425000000

8. Enter the smart contract address for your desired bond, from Step 1, into the "bond (address)" field.

9. Enter the smart contract address for Tether (USDT) into the "currency (address)" field.

Tether USD (USDT): 0xdAC17F958D2ee523a2206206994597C13D831ec7

10. Enter "0,0,0" for the "sales (uint256[])" field.

11. Enter "0" for the "minOutput" field.

12. Review your entries for accuracy before proceeding.

13. Select the "Write" button and finish the transaction process in your Web3 wallet.

14. A successful transaction should yield a change in the balance of your Web3 wallet. Some tokens may need to be imported to be seen. We suggest checking your wallet address on Etherscan to confirm the minting of tranche tokens to your wallet.

If you receive a gas estimation warning due to the possibility of the transaction failing, please review your entries again for accuracy. If you have trouble with this tutorial please reach out in our to a team member for help.

Discord
UniV3lLoanRouter