daily pastebin goal
35%
SHARE
TWEET

PT to PTWO Instructions

PornToken Jan 10th, 2018 (edited) 406 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * PornTokenV2 PT Upgrader
  3.  * Converts PT to PTWO on a 4:1 reverse split basis
  4.  *
  5.  * The PT user transferring to PTWO must call
  6.  * The approve(0xc58575d957ac5cd69267049eee86be8807ff4343, uint256 _value) function
  7.  * from original token contract: 0x66497A283E0a007bA3974e837784C6AE323447de
  8.  *
  9.  * NOTE: _value must be expressed in the number of PT you want to convert + 18 zeros
  10.  * to represent it's 18 decimal places.
  11.  * So if you want to send 1 PT, do approve(0xc58575d957ac5cd69267049eee86be8807ff4343, 1000000000000000000)
  12.  *
  13.  * ...with the address of this Contract as the first argument
  14.  * and the amount of PT to convert to PTWO as the 2nd argument
  15.  *
  16.  * Then they must call the ptToPtwo() method in this contract
  17.  * and they will receive a 4:1 reverse split amount of PTWO
  18.  * meaning 4 times less PTWO than PT
  19.  */
  20.  
  21. STEP 1 FAQ: You can execute contract methods on the original PT contract by going here: https://www.myetherwallet.com/#contracts
  22. A. Enter the contract address: 0x66497A283E0a007bA3974e837784C6AE323447de
  23. B. Go here and copy the Contract ABI and paste it into the other box on MEW: https://etherscan.io/address/0x66497A283E0a007bA3974e837784C6AE323447de#code
  24. C. Select approve from the dropdown menu
  25. D. The parameter for the spender should be 0xc58575d957ac5cd69267049eee86be8807ff4343
  26. E. The parameter for the amount should be the amount of PT you want to convert to PTWO plus 18 trailing zeros
  27.  
  28. For 1 PT convert to .25 PTWO it would be: approve(0xc58575d957ac5cd69267049eee86be8807ff4343, 1000000000000000000)
  29.  
  30. STEP 2 FAQ: You can execute contract methods on the original PT contract by going here: https://www.myetherwallet.com/#contracts
  31. A. Enter the contract address: 0xc58575d957ac5cd69267049eee86be8807ff4343
  32. B. Go here and copy the Contract ABI and paste it into the other box on MEW: https://etherscan.io/address/0xc58575d957ac5cd69267049eee86be8807ff4343#code
  33. C. Select ptToPtwo from the dropdown menu
  34. D. No parameters are used on this function
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top