Skip to content

Commit ee9a851

Browse files
committed
fix: don't just give tokens to the filler
1 parent 1129ef7 commit ee9a851

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/apps/Morpho.sol

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,12 @@ contract HosyMorphoBorrow is HostMorphoUser {
245245

246246
function transferFrom(address filler, address onBehalf, uint256 amount) external returns (bool) {
247247
// borrow some amount of loanToken
248-
morpho.borrow(loadParams(), amount, 0, onBehalf, filler);
248+
morpho.borrow(loadParams(), amount, 0, onBehalf, address(this));
249+
250+
// User logic to use the tokens goes here.
251+
// Could send the tokens to the rollup via Passage, or do something
252+
// else :)
253+
249254
return true;
250255
}
251256
}

0 commit comments

Comments
 (0)