Skip to content

Commit

Permalink
Merge pull request #137 from sotatek-dev/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Sotatek-TanHoang authored Oct 3, 2024
2 parents 3624a99 + b8fab0e commit 0f9ffe0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ services:
REDIS_URI: redis://redis:${REDIS_PORT}
USERNAME: admin
PASSWORD: minabridge
QUEUES: UNLOCK_JOB_QUEUE,EVM_SENDER_QUEUE,MINA_SENDER_QUEUE,EVM_VALIDATOR_1,EVM_VALIDATOR_2,EVM_VALIDATOR_2,MINA_VALIDATOR_1,MINA_VALIDATOR_2,MINA_VALIDATOR_3
QUEUES: EVM_SENDER_QUEUE,MINA_SENDER_QUEUE,EVM_VALIDATOR_1,EVM_VALIDATOR_2,EVM_VALIDATOR_2,MINA_VALIDATOR_1,MINA_VALIDATOR_2,MINA_VALIDATOR_3
ports:
- '${BULL_MONITOR_PORT}:3011'
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
REDIS_URI: redis://redis:${REDIS_PORT}
USERNAME: admin
PASSWORD: minabridge
QUEUES: UNLOCK_JOB_QUEUE,EVM_SENDER_QUEUE,MINA_SENDER_QUEUE,EVM_VALIDATOR_1,EVM_VALIDATOR_2,EVM_VALIDATOR_2,MINA_VALIDATOR_1,MINA_VALIDATOR_2,MINA_VALIDATOR_3
QUEUES: EVM_SENDER_QUEUE,MINA_SENDER_QUEUE,EVM_VALIDATOR_1,EVM_VALIDATOR_2,EVM_VALIDATOR_2,MINA_VALIDATOR_1,MINA_VALIDATOR_2,MINA_VALIDATOR_3
ports:
- '${BULL_MONITOR_PORT}:3011'
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion src/constants/entity.constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export enum ETableName {
MULTI_SIGNATURE = 'multi_signature',
}

export const MINA_CRAWL_SAFE_BLOCK = 3;
export const MINA_CRAWL_SAFE_BLOCK = 1;
2 changes: 1 addition & 1 deletion src/modules/crawler/crawler.evmbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class BlockchainEVMCrawler {
fromDecimal: fromTokenDecimal,
toDecimal: toTokenDecimal,
inputAmountNoDecimalPlaces: inputAmount,
gasFeeWithDecimalPlaces: this.configService.get(EEnvKey.GAS_FEE_EVM)!,
gasFeeWithDecimalPlaces: this.configService.get(EEnvKey.GASFEEMINA)!,
tipPercent: +config!.tip,
});
if (error) {
Expand Down
6 changes: 3 additions & 3 deletions src/modules/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ export class UsersService {
httpNotFound(EError.RESOURCE_NOT_FOUND);
}
if (tokenPair!.toChain == ENetworkName.MINA) {
decimal = this.configService.get(EEnvKey.DECIMAL_TOKEN_EVM);
gasFee = addDecimal(this.configService.get(EEnvKey.GAS_FEE_EVM)!, decimal);
} else {
decimal = this.configService.get(EEnvKey.DECIMAL_TOKEN_MINA);
gasFee = addDecimal(this.configService.get(EEnvKey.GASFEEMINA)!, decimal);
} else {
decimal = this.configService.get(EEnvKey.DECIMAL_TOKEN_EVM);
gasFee = addDecimal(this.configService.get(EEnvKey.GAS_FEE_EVM)!, decimal);
}

return { gasFee, tipRate: configTip!.tip, decimal };
Expand Down

0 comments on commit 0f9ffe0

Please sign in to comment.