Skip to content

Commit

Permalink
refactor: hoist maxClockSkew
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed May 13, 2024
1 parent ee33d10 commit dca230b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/orchestration/src/exos/stakingAccountKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ import {
DelegationShape,
} from '../typeGuards.js';

/** maximum clock skew, in seconds, for unbonding time reported from other chain */
export const maxClockSkew = 10n * 60n;

/**
* @import {AmountArg, ChainAccount, ChainAddress, ChainAmount, CosmosValidatorAddress, ICQConnection, StakingAccountActions} from '../types.js';
* @import {RecorderKit, MakeRecorderKit} from '@agoric/zoe/src/contractSupport/recorder.js';
Expand Down Expand Up @@ -416,7 +419,6 @@ export const prepareStakingAccountKit = (baggage, makeRecorderKit, zcf) => {
const { completionTime } = response;
const endTime = BigInt(completionTime.getTime() / 1000);

const maxClockSkew = 10n * 60n;
await E(timer).wakeAt(endTime + maxClockSkew);
},
},
Expand Down

0 comments on commit dca230b

Please sign in to comment.