Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * PornTokenV2 PT Upgrader
- * Converts PT to PTWO on a 4:1 reverse split basis
- *
- * The PT user transferring to PTWO must call
- * The approve(0xc58575d957ac5cd69267049eee86be8807ff4343, uint256 _value) function
- * from original token contract: 0x66497A283E0a007bA3974e837784C6AE323447de
- *
- * NOTE: _value must be expressed in the number of PT you want to convert + 18 zeros
- * to represent it's 18 decimal places.
- * So if you want to send 1 PT, do approve(0xc58575d957ac5cd69267049eee86be8807ff4343, 1000000000000000000)
- *
- * ...with the address of this Contract as the first argument
- * and the amount of PT to convert to PTWO as the 2nd argument
- *
- * Then they must call the ptToPtwo() method in this contract
- * and they will receive a 4:1 reverse split amount of PTWO
- * meaning 4 times less PTWO than PT
- */
- STEP 1 FAQ: You can execute contract methods on the original PT contract by going here: https://www.myetherwallet.com/#contracts
- A. Enter the contract address: 0x66497A283E0a007bA3974e837784C6AE323447de
- B. Go here and copy the Contract ABI and paste it into the other box on MEW: https://etherscan.io/address/0x66497A283E0a007bA3974e837784C6AE323447de#code
- C. Select approve from the dropdown menu
- D. The parameter for the spender should be 0xc58575d957ac5cd69267049eee86be8807ff4343
- E. The parameter for the amount should be the amount of PT you want to convert to PTWO plus 18 trailing zeros
- For 1 PT convert to .25 PTWO it would be: approve(0xc58575d957ac5cd69267049eee86be8807ff4343, 1000000000000000000)
- STEP 2 FAQ: You can execute contract methods on the original PT contract by going here: https://www.myetherwallet.com/#contracts
- A. Enter the contract address: 0xc58575d957ac5cd69267049eee86be8807ff4343
- B. Go here and copy the Contract ABI and paste it into the other box on MEW: https://etherscan.io/address/0xc58575d957ac5cd69267049eee86be8807ff4343#code
- C. Select ptToPtwo from the dropdown menu
- D. No parameters are used on this function
Add Comment
Please, Sign In to add comment