Skip to content

treasury state variable in LongShort #110

Open

Description

@code423n4

Handle

pauliax

Vulnerability details

Impact

contract LongShort has a 'treasury' state variable that is not used in any meaningful way. It is only initialized in function initialize and can be changed by function changeTreasury, no other interactions. YieldManagerAave has its own separate treasury variable that it allocates funds to so this dead code can be removed to save some gas at least.

Activity

  1. added a commit that references this issue on Aug 11, 2021
  2. JasoonS commented on Aug 12, 2021

    @JasoonS
    Collaborator

    Good point, thanks!

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