Skip to content

Instantly share code, notes, and snippets.

View tranvictor's full-sized avatar

Victor Tran tranvictor

View GitHub Profile
[{"inputs":[{"internalType":"address","name":"vat_","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":true,"inputs":[{"indexed":true,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":true,"internalType":"address","name":"usr","type":"address"},{"indexed":true,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"usr","type":"address"},{"indexed":true,"internalType":"address","name":"own","type":"address"},{"indexed":true,"internalType":"uint256","name":"cdp","type":"uint256"}],"name":"NewCdp","type":"event"},{"constant":false,"inputs":[{"internalType":"uint256","name":"cdp","type":"uint256"},{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"ok","type"
@tranvictor
tranvictor / gist:840cb51eb40dec87676a1ce7bf655a2b
Last active December 20, 2020 19:38
Instruction to rescue lost WBTC of users in token contract

Dear WBTC Dao members,

There are 9 WBTC, which is worth more than 200k USD, stuck in the token contract because a few users sent them there by mistake. 2 of the users already requested the rescue in this github issue. Kyber, as one of the dao members, would like to propose the following procedure to claim the tokens and send back to users:

  1. the DAO will call 0xca06411bd7a7296d7dbdd0050dfc846e95febeb7.callReclaimToken() to send all WBTC in the WTBC contract to itself as it is the owner of WBTC contract. This needs 11 approvals out of 18 members.
  2. the DAO will call 0xca06411bd7a7296d7dbdd0050dfc846e95febeb7.reclaimToken() to send all WBTC there (as result of the previous operation) to the DAO as the DAO is the owner of 0xca06411bd7a7296d7dbdd0050dfc846e95febeb7. This needs 11 approvals out of 18 members as well.
  3. the DAO will call WBTC.transfer() to transfer the WBTC to 0x4dbbbFb0e68bE9D8F5a377A4654604a62E851e80. This is WBTC mini
@tranvictor
tranvictor / bitfi-pmm-integration-doc.md
Created December 5, 2024 07:30
Bitfi solver PMM integration doc

Updated PMM Integration API Documentation

This document provides detailed information about the endpoints that your PMM (Private Market Maker) will need to implement to interact with our solver backend. The endpoints are used to provide indicative quotes, commitment quotes, settlement signatures, and to submit settlement transactions. Each endpoint's expected request parameters and response formats are described below.


Table of Contents

  1. PMM Endpoints