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

Add return bytes to flashloan callback #570

Conversation

ultrasecreth
Copy link

Adds return bytes to the flash loan callback and the flash loan function so a callback user can pass data back to itself without using storage.

@MerlinEgalite MerlinEgalite requested review from a team, Rubilmax, MerlinEgalite, Jean-Grimal, QGarchery, peyha and MathisGD and removed request for a team October 27, 2023 09:30
@Rubilmax
Copy link
Contributor

Copy link
Contributor

@MerlinEgalite MerlinEgalite left a comment

Choose a reason for hiding this comment

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

Alright I'm not against this change indeed but then should we harmonize it for other callbacks?

I'm against for the other callbacks.

src/Morpho.sol Outdated Show resolved Hide resolved
src/Morpho.sol Outdated Show resolved Hide resolved
src/interfaces/IMorpho.sol Outdated Show resolved Hide resolved
src/interfaces/IMorphoCallbacks.sol Outdated Show resolved Hide resolved
src/mocks/FlashBorrowerMock.sol Outdated Show resolved Hide resolved
src/mocks/FlashBorrowerMock.sol Outdated Show resolved Hide resolved
test/forge/integration/CallbacksIntegrationTest.sol Outdated Show resolved Hide resolved
test/forge/integration/CallbacksIntegrationTest.sol Outdated Show resolved Hide resolved
test/forge/integration/CallbacksIntegrationTest.sol Outdated Show resolved Hide resolved
test/forge/integration/CallbacksIntegrationTest.sol Outdated Show resolved Hide resolved
ultrasecreth and others added 10 commits October 27, 2023 12:54
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
src/mocks/FlashBorrowerMock.sol Outdated Show resolved Hide resolved
src/mocks/FlashBorrowerMock.sol Outdated Show resolved Hide resolved
ultrasecreth and others added 2 commits October 27, 2023 13:07
Co-authored-by: Romain Milon <rmilon@gmail.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
Co-authored-by: Romain Milon <rmilon@gmail.com>
Signed-off-by: ultrasecr.eth <241804+ultrasecreth@users.noreply.github.com>
@MathisGD MathisGD changed the base branch from cantina-review to feat/add-return-bytes-callbacks November 9, 2023 11:12
@MathisGD MathisGD merged commit a374650 into morpho-org:feat/add-return-bytes-callbacks Nov 9, 2023
4 checks passed
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.

4 participants