Skip to content

Commit 2062fd5

Browse files
authored
Merge pull request #983 from pendulum-chain/staging
Create new production release
2 parents fdff0cf + f97618a commit 2062fd5

File tree

5 files changed

+23
-12
lines changed

5 files changed

+23
-12
lines changed

apps/frontend/src/machines/brlaKyc.machine.ts

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,23 @@ export const aveniaKycMachine = setup({
113113
},
114114
FORM_SUBMIT: {
115115
actions: assign({
116+
executionInput: ({ context, event }) => {
117+
if (!context.executionInput) return undefined;
118+
return {
119+
...context.executionInput,
120+
taxId: event.formData.taxId
121+
};
122+
},
116123
kycFormData: ({ event }) => {
117124
console.log("kycFormData", event.formData);
118125
return event.formData;
119-
}
126+
},
127+
taxId: ({ event }) => event.formData.taxId
120128
}),
121129
target: "SubaccountSetup"
122130
}
123131
}
124132
},
125-
126133
KYBFlow: {
127134
initial: "CompanyVerification",
128135
on: {
@@ -134,13 +141,21 @@ export const aveniaKycMachine = setup({
134141
},
135142
FORM_SUBMIT: {
136143
actions: assign({
144+
executionInput: ({ context, event }) => {
145+
if (!context.executionInput) return undefined;
146+
return {
147+
...context.executionInput,
148+
taxId: event.formData.taxId
149+
};
150+
},
137151
kycFormData: ({ event, context }) => {
138152
console.log("kycFormData", event.formData);
139153
return {
140154
...context.kycFormData,
141155
...event.formData
142156
};
143-
}
157+
},
158+
taxId: ({ event }) => event.formData.taxId
144159
}),
145160
target: "KYBVerification"
146161
}
@@ -209,6 +224,9 @@ export const aveniaKycMachine = setup({
209224
}
210225
},
211226
LivenessCheck: {
227+
exit: assign({
228+
livenessCheckOpened: () => false
229+
}),
212230
on: {
213231
LIVENESS_DONE: {
214232
guard: ({ context }) => context.livenessCheckOpened === true,

packages/shared/src/tokens/moonbeam/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ export const moonbeamTokenConfig: Partial<Record<FiatToken, MoonbeamTokenDetails
4141
partnerUrl: "https://brla.digital", // 150,000 BRL. We put this as an artificial limit to avoid too high amounts.
4242
pendulumRepresentative: PENDULUM_BRLA_MOONBEAM,
4343
polygonErc20Address: "0xe6a537a407488807f0bbeb0038b79004f19dddfb", // 0.75 BRL
44-
sellFeesBasisPoints: 0,
45-
sellFeesFixedComponent: 0.75, // 0.75 BRL
4644
type: TokenType.Moonbeam
4745
}
4846
};

packages/shared/src/tokens/stellar/config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const stellarTokenConfig: Partial<Record<FiatToken, StellarTokenDetails>>
1919
maxBuyAmountRaw: "10000000000000000",
2020
maxSellAmountRaw: "10000000000000000",
2121
minBuyAmountRaw: "1000000000000",
22-
minSellAmountRaw: "10000000000000",
22+
minSellAmountRaw: "25000000000000",
2323
pendulumRepresentative: {
2424
assetSymbol: "EURC",
2525
currency: FiatToken.EURC,
@@ -34,7 +34,6 @@ export const stellarTokenConfig: Partial<Record<FiatToken, StellarTokenDetails>>
3434
decimals: 12,
3535
erc20WrapperAddress: "6eNUvRWCKE3kejoyrJTXiSM7NxtWi37eRXTnKhGKPsJevAj5"
3636
},
37-
sellFeesBasisPoints: 25,
3837
stellarAsset: {
3938
code: {
4039
hex: "0x45555243",
@@ -78,8 +77,6 @@ export const stellarTokenConfig: Partial<Record<FiatToken, StellarTokenDetails>>
7877
decimals: 12,
7978
erc20WrapperAddress: "6f7VMG1ERxpZMvFE2CbdWb7phxDgnoXrdornbV3CCd51nFsj"
8079
},
81-
sellFeesBasisPoints: 200,
82-
sellFeesFixedComponent: 10,
8380
stellarAsset: {
8481
code: {
8582
hex: "0x41525300",

packages/shared/src/tokens/tokenConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const EURC: StellarTokenConfig = {
6565
homeDomain: getHomeDomain("EURC"),
6666
maximumSubsidyAmountRaw: "15000000000000",
6767
memoEnabled: false, // 15 units
68-
minWithdrawalAmount: "10000000000000",
68+
minWithdrawalAmount: "25000000000000",
6969
pendulumCurrencyId: {
7070
Stellar: {
7171
AlphaNum4: {

packages/shared/src/tokens/types/base.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ export interface BaseFiatTokenDetails {
4545
maxSellAmountRaw: string;
4646
minBuyAmountRaw: string;
4747
maxBuyAmountRaw: string;
48-
sellFeesBasisPoints: number;
49-
sellFeesFixedComponent?: number;
5048
buyFeesBasisPoints?: number;
5149
buyFeesFixedComponent?: number;
5250
}

0 commit comments

Comments
 (0)