Skip to content

Commit

Permalink
Datum fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sluder committed Jun 4, 2024
1 parent 9ed4301 commit 642e07e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/dex/definitions/sundaeswap-v3/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
constructor: 0,
fields: [
{
bytes: DatumParameterKey.SenderPubKeyHash,
bytes: DatumParameterKey.SenderStakingKeyHash,
},
],
},
Expand Down
33 changes: 5 additions & 28 deletions src/dex/definitions/sundaeswap-v3/pool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DatumParameterKey } from '@app/constants';
import { DatumParameters, DefinitionField } from '@app/types';

export default {
constructor: 0,
Expand Down Expand Up @@ -34,37 +35,13 @@ export default {
int: DatumParameterKey.TotalLpTokens
},
{
list: [
{
int: DatumParameterKey.OpeningFee
},
{
int: DatumParameterKey.FinalFee
}
],
int: DatumParameterKey.OpeningFee
},
{
list: [
{
int: DatumParameterKey.OpeningFee
},
{
int: DatumParameterKey.FinalFee
}
],
},
{
fields: [],
constructor: 1,
},
{
int: DatumParameterKey.MarketOpen
},
{
int: DatumParameterKey.FeesFinalized
int: DatumParameterKey.FinalFee
},
{
int: DatumParameterKey.ProtocolFee
(field: DefinitionField, parameters: DatumParameters, shouldExtract: boolean = true) => {
return;
},
],
};

0 comments on commit 642e07e

Please sign in to comment.