Skip to content

Commit

Permalink
Revert "do not set argument for wrapEgld action"
Browse files Browse the repository at this point in the history
This reverts commit f441da1.
  • Loading branch information
tanghel committed Aug 18, 2024
1 parent f441da1 commit 4f7ce56
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Injectable } from "@nestjs/common";
import { EsdtType } from "src/endpoints/esdt/entities/esdt.type";
import { TransactionAction } from "../../entities/transaction.action";
import { TransactionActionCategory } from "../../entities/transaction.action.category";
import { TransactionMetadata } from "../../entities/transaction.metadata";
Expand Down Expand Up @@ -43,6 +44,17 @@ export class MexWrapActionRecognizerService {
result.category = TransactionActionCategory.mex;
result.name = MexFunction.wrapEgld;
result.description = `Wrap ${valueDenominated} EGLD`;
result.arguments = {
token: {
type: EsdtType.FungibleESDT,
name: 'WrappedEGLD',
token: wegldId,
ticker: wegldId.split('-')[0],
decimals: 18,
value: metadata.value.toString(),
},
receiver: metadata.receiver,
};

return result;
}
Expand Down

0 comments on commit 4f7ce56

Please sign in to comment.