Skip to content

Commit

Permalink
chore: settler: don't forward without evidence
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Nov 27, 2024
1 parent 49bd809 commit 2f4bafe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/fast-usdc/src/exos/settler.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,13 @@ export const prepareSettler = (
this.state.mintedEarly.add(makeMintedEarlyKey(sender, amount));
return;

case undefined:
case PendingTxStatus.Observed:
case PendingTxStatus.AdvanceFailed:
return self.forward(found.txHash, sender, amount, EUD);

case undefined:
default:
return self.forward(found?.txHash, sender, amount, EUD);
console.warn('⚠️ tap: no status for ', sender, amount);
}
},
},
Expand Down Expand Up @@ -247,7 +249,7 @@ export const prepareSettler = (
statusManager.disbursed(txHash);
},
/**
* @param {EvmHash | undefined} txHash
* @param {EvmHash} txHash
* @param {NobleAddress} sender
* @param {NatValue} fullValue
* @param {string} EUD
Expand Down Expand Up @@ -275,7 +277,7 @@ export const prepareSettler = (
* @param {SettlerTransferCtx} ctx
*
* @typedef {{
* txHash: EvmHash | undefined;
* txHash: EvmHash;
* sender: NobleAddress;
* fullValue: NatValue;
* }} SettlerTransferCtx
Expand Down

0 comments on commit 2f4bafe

Please sign in to comment.