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

feat: pass debt to asses unrealised loss #212

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

Schlagonia
Copy link
Collaborator

Description

Pass the current debt of the strategy as a parameter into _assess_share_of_unrealised_losses to avoid needing to pull from storage again within the function

Fixes # (issue)

Checklist

  • I have run vyper and solidity linting
  • I have run the tests on my machine
  • I have followed commitlint guidelines
  • I have rebased my changes to the latest version of the main branch

@Schlagonia Schlagonia changed the base branch from master to 3_0_3 September 12, 2024 19:51
Copy link
Collaborator

@fp-crypto fp-crypto left a comment

Choose a reason for hiding this comment

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

Looks good, but i'd really like to see tests passing before approving

Copy link
Collaborator

@fp-crypto fp-crypto left a comment

Choose a reason for hiding this comment

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

LGTM

@Schlagonia Schlagonia merged commit cbc66dc into 3_0_3 Sep 12, 2024
8 checks passed
@Schlagonia Schlagonia deleted the asses_unrealised branch September 12, 2024 23:16
Schlagonia added a commit that referenced this pull request Sep 24, 2024
* chore: updgrade ape

* build: allow max uint (#204)

* build: allow max uint

* fix: lint version

* forge install: openzeppelin-contracts

v4.9.5

* chore: oz sub module

* forge install: tokenized-strategy

v3.0.2

* test: fix foundry tests

* chore: bump version

* fix: workflow (#207)

* chore: update wf version

* chore: add statemind report

* feat: update name and symbol (#206)

* feat: set name and symbol

* chore: spech

* test: fix emergency

* fix: test workflow (#208)

* fix: config override

* chore: manual setup

* fix: requirements

* fix: ape version

* chore: rebase

* chore: dont double pull from storage (#212)

* feat: report on self (#205)

* feat: report on self

* chore: comment

* chore: add back

* build: auto allocate (#203)

* build: auto allocate

* build: dont revert debt increase

* chore: remove decrease revert

* chore: update spech

* chore: spech

* chore: comments

* fix: event

* fix: comments

Co-authored-by: spalen0 <[email protected]>

* feat: pack pf config (#211)

* feat: pack pf config

* chore: remove event

* chore: formatting

* test: interface updates

* chore: comments

* fix: deposit flow (#209)

* forge install: openzeppelin-contracts

v4.9.5

* chore: oz sub module

* test: fix foundry tests

* fix: deposit flow

* fix: zero total assets

* fix: flow

* test: full loss

* chore: comment

* test: add invariants

* fix: comments

* fix: user msg sender

* fix: comments

* fix: comment

* chore: add to interfaces

* fix: comments

* chore: match gov abi (#213)

* chore: deployment

* chore: deployed

---------

Co-authored-by: FP <[email protected]>
Co-authored-by: spalen0 <[email protected]>
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