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

tgld audit fix m08 #1033

Merged
merged 4 commits into from
Jun 4, 2024
Merged

tgld audit fix m08 #1033

merged 4 commits into from
Jun 4, 2024

Conversation

princetonbishop
Copy link
Collaborator

@princetonbishop princetonbishop commented May 27, 2024

Title

No token recover mechanism when the auction ends without any bid

Description

In SpiceAuction contract, when an auction ends with no bids, the auction tokens are locked into the contract and can't be recovered. recoverToken function doesn't help recover the auction token because it limits recoverable amount to balance - totalAllocation

Impact

It has Medium severity because the auction tokens can be stuck in the contract and can't be recovered, although this would be rare case.

Recommendation

There has to be a mechanism implemented to recover tokens from auctions when it ends without any bids.

Tag

tgld audit fix m08

Checklist

  • Code follows the style guide
  • I have performed a self-review of my own code
  • New and existing tests pass locally
  • This PR is targeting the correct branch

@princetonbishop princetonbishop requested a review from a team as a code owner May 27, 2024 10:49
@princetonbishop princetonbishop changed the title tgld audit fix m09 tgld audit fix m08 May 27, 2024
@princetonbishop princetonbishop merged commit 6f9d13f into templegold Jun 4, 2024
5 checks passed
@princetonbishop princetonbishop deleted the tgld-audit-fix-m09 branch June 4, 2024 17:02
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.

1 participant