Skip to content

5 T Swap Audit Proof of Code / POC #364

Answered by EngrPips
vegazeronos asked this question in Q&A
Discussion options

You must be logged in to vote

I can't remember correctly if he wrote one because it has been a long time since I saw the content. The exact way you set up a user here to make a swap is the same way you will set up plenty user to make a swap oner after the other then make the intended user make the last swap and show the difference in the expected result against the actual result. But I realized there is an issue with incorrect fee as well when a user make a swap so maybe you should create a separate swap function that correctly account for fee so that the vulnerability you want to show won't be disrupted by that incorrect fee accounting bug

You can set up the intended user for the swap by funding them with the tokens …

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@vegazeronos
Comment options

@EngrPips
Comment options

@vegazeronos
Comment options

@EngrPips
Comment options

Answer selected by vegazeronos
@vegazeronos
Comment options

@EngrPips
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants