Skip to content

Mitigation Confirmed for GAS #17

Open

Description

@code423n4

Issue #21

KBC-01G - cBond changed from memory to calldata. No new issue created.

KBC-02G - redeem now only loads the parentId into memory instead of the entire cBond. No new issue created.

KIB-01G - _allowances is private and never used so it has been removed. No new issue created.

KIB-02G - this.balanceOf(to) changed to balanceOf(to) in 4 locations. No new issue created.

KFC-02G - i is incremented inside an unchecked block. Since i is only used to track the number of loops, the change is safe and no new issues have been created.

KFC-03G - It appears that this was meant to reference KFC-04G instead of KFC-03G because no changes have been made to address this.

KFC-04G - Storage variables are only written once at the end of instead of each loop. No new issue created.

KBT-01G - _beforeTokenTransfer is overriden instead of transferFrom and safeTransferFrom. This applies the appropriate modifiers to ALL transfers. No new issues created

KBT-02G - _msgSender() change to msg.sender at all instances. No new issues created

MAR-01G - startedAt now returns _updatedAt. startedAt is unused elsewhere so no new issues created.

KSP-01G - variable names of unused variables in onERC721Received have been removed. Since they are never used no new issues created.

Activity

  1. added a commit that references this issue on Mar 20, 2023
  2. added
    satisfactorysatisfies C4 submission criteria; eligible for awards
    on Mar 23, 2023
  3. c4-judge commented on Mar 23, 2023

    @c4-judge

    GalloDaSballo marked the issue as satisfactory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions