File tree Expand file tree Collapse file tree
solana/sol/programs/sol/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -447,11 +447,7 @@ impl Train for Contract {
447447 }
448448 }
449449 } else {
450- transfer (
451- Identity :: Address (htlc . srcReceiver),
452- htlc . assetId,
453- htlc . amount,
454- );
450+
455451 }
456452 log (TokenRedeemed {
457453 Id ,
Original file line number Diff line number Diff line change @@ -377,8 +377,8 @@ pub mod native_htlc {
377377 }
378378 } else {
379379 // send the tokens to the receiver if the reward is set to zero
380- htlc. sub_lamports ( amount) ?;
381- ctx. accounts . src_receiver . add_lamports ( amount) ?;
380+ // htlc.sub_lamports(amount)?;
381+ // ctx.accounts.src_receiver.add_lamports(amount)?;
382382 }
383383
384384 Ok ( true )
Original file line number Diff line number Diff line change @@ -544,9 +544,9 @@ mod TrainERC20 {
544544 }
545545 } else {
546546 // send the tokens to the receiver if the reward is set to zero
547- let transfered = IERC20Dispatcher { contract_address : htlc . tokenContract }
548- . transfer (htlc . srcReceiver, htlc . amount);
549- assert! (transfered , " transfer failed" );
547+ // let transfered = IERC20Dispatcher { contract_address: htlc.tokenContract }
548+ // .transfer(htlc.srcReceiver, htlc.amount);
549+ // assert!(transfered, "transfer failed");
550550 }
551551
552552 self
Original file line number Diff line number Diff line change @@ -288,13 +288,7 @@ contract Train {
288288 mode : SendPayFwdFeesSeparately ,
289289 body : " TRAINRewardReturn" .asComment (),
290290 });
291- message (MessageParameters {
292- to : sender (),
293- value : 0 ,
294- bounce : false ,
295- mode : SendRemainingBalance ,
296- body : " TRAINRedeemExcess" .asComment (),
297- });
291+
298292 } else {
299293 if (sender () == htlc .srcReceiver ) {
300294 message (MessageParameters {
You can’t perform that action at this time.
0 commit comments