Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 4c5f4df

Browse files
committed
lending: removed FIXME comments after discussion
1 parent 1c1ca3e commit 4c5f4df

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

token-lending/program/src/processor.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,6 @@ fn process_repay_obligation_liquidity(
12771277
msg!("Repay reserve liquidity supply must be used as the destination liquidity provided");
12781278
return Err(LendingError::InvalidAccountInput.into());
12791279
}
1280-
// @FIXME: why is it necessary to refresh before repay?
12811280
if repay_reserve.last_update.is_stale(clock.slot)? {
12821281
msg!("Repay reserve is stale and must be refreshed in the current slot");
12831282
return Err(LendingError::ReserveStale.into());
@@ -1292,7 +1291,6 @@ fn process_repay_obligation_liquidity(
12921291
msg!("Obligation lending market does not match the lending market provided");
12931292
return Err(LendingError::InvalidAccountInput.into());
12941293
}
1295-
// @FIXME: why is it necessary to refresh before repay?
12961294
if obligation.last_update.is_stale(clock.slot)? {
12971295
msg!("Obligation is stale and must be refreshed in the current slot");
12981296
return Err(LendingError::ObligationStale.into());

0 commit comments

Comments
 (0)