Skip to content

Commit

Permalink
update protocol fee to 1%, remove vestingMemo from endpoint and contract
Browse files Browse the repository at this point in the history
  • Loading branch information
solidsnakedev committed Sep 6, 2023
1 parent e80778a commit b2a945c
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const ONE_HOUR_MS = 3_600_000
export const ONE_YEAR_MS = 31_557_600_000
export const TWO_YEARS_MS = 2 * ONE_YEAR_MS
export const TWENTY_FOUR_HOURS_MS = 24 * ONE_HOUR_MS
export const PROTOCOL_FEE = 0.05
export const PROTOCOL_FEE = 0.01
export const TIME_TOLERANCE_MS = process.env.NODE_ENV == "emulator" ? 0 : 100_000
export const PROTOCOL_PAYMENT_KEY = "014e9d57e1623f7eeef5d0a8d4e6734a562ba32cf910244cd74e1680"
export const PROTOCOL_STAKE_KEY = "5e8aa3f089868eaadf188426f49db6566624844b6c5d529b38f3b8a7"
1 change: 0 additions & 1 deletion src/core/contract.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export const VestingDatumSchema = Data.Object({
vestingPeriodEnd: Data.Integer(),
firstUnlockPossibleAfter: Data.Integer(),
totalInstallments: Data.Integer(),
vestingMemo: Data.Bytes(),
});
export type VestingDatum = Data.Static<typeof VestingDatumSchema>;

Expand Down
1 change: 0 additions & 1 deletion src/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export type LockTokensConfig = {
vestingPeriodEnd: POSIXTime;
firstUnlockPossibleAfter: POSIXTime;
totalInstallments: number;
vestingMemo: string;
scripts: {
vesting: CborHex;
};
Expand Down
2 changes: 0 additions & 2 deletions src/endpoints/lockVestingTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
Lucid,
SpendingValidator,
Data,
fromText,
TxComplete,
toUnit,
} from "@anastasia-labs/lucid-cardano-fork"
Expand Down Expand Up @@ -39,7 +38,6 @@ export const lockTokens = async (
vestingPeriodEnd: BigInt(config.vestingPeriodEnd),
firstUnlockPossibleAfter: BigInt(config.firstUnlockPossibleAfter),
totalInstallments: BigInt(config.totalInstallments),
vestingMemo: fromText(config.vestingMemo),
},
VestingDatum
);
Expand Down
2 changes: 1 addition & 1 deletion test/linearVesting.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion test/lock-unlock.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ test<LucidContext>("Test - LockTokens, Unlock Tokens", async ({
vestingPeriodEnd: emulator.now() + TWENTY_FOUR_HOURS_MS,
firstUnlockPossibleAfter: emulator.now(),
totalInstallments: 4,
vestingMemo: "",
scripts: {
vesting: linearVesting.cborHex,
},
Expand Down
2 changes: 1 addition & 1 deletion test/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b2a945c

Please sign in to comment.