Skip to content

Commit 8f7a282

Browse files
committed
fix: TokenOptionAllocation payment should come from grantee instead of recipient
1 parent 9bee73f commit 8f7a282

2 files changed

Lines changed: 426 additions & 3 deletions

File tree

src/TokenOptionAllocation.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ contract TokenOptionAllocation is BaseAllocation {
143143
uint256 paymentAmount = getPaymentAmount(_tokensToExercise);
144144
if(paymentAmount == 0) revert MetaVesT_TooSmallAmount();
145145

146-
address recipient = getRecipient();
147-
safeTransferFrom(paymentToken, recipient, getAuthority(), paymentAmount);
146+
safeTransferFrom(paymentToken, grantee, getAuthority(), paymentAmount);
148147
tokensExercised += _tokensToExercise;
149-
emit MetaVesT_TokenOptionExercised(grantee, recipient, _tokensToExercise, paymentAmount);
148+
emit MetaVesT_TokenOptionExercised(grantee, getRecipient(), _tokensToExercise, paymentAmount);
150149
}
151150

152151
/// @notice Allows the controller to terminate the TokenOptionAllocation

0 commit comments

Comments
 (0)