Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal audit reward #181

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Internal audit reward #181

wants to merge 2 commits into from

Conversation

77ph
Copy link
Collaborator

@77ph 77ph commented Jun 6, 2023

  • Internal audit focused on swap

@77ph 77ph requested a review from 0xArdi June 6, 2023 16:54
Comment on lines +12 to +21
def _get_gas_spent(self) -> Generator[None, None, str]:
# we start from the block the block in which the last withdraw event happened, or from the first block if we have
# never withdrawn
from_block = (
0
if latest_withdraw_event == self._NO_EVENT
else latest_withdraw_event["block_number"]
)
# we end at the block in which the last unbonding event happened
to_block = latest_unbonding_event["block_number"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be addressed

Comment on lines +89 to +90
expected = pool.get_dy(0, 1, 10**18) * 0.99
pool.exchange(0, 1, 10**18, expected, {'from': alice})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be addressed

@0xArdi 0xArdi mentioned this pull request Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants