Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

For OrderRecord event 'receiver' is missing #7

@Umiiii

Description

@Umiiii

emit OrderRecord(

    function _smartSwapInternal(
        BaseRequest memory baseRequest,
        uint256[] memory batchesAmount,
        RouterPath[][] memory batches,
        address payer,
        address refundTo,
        address receiver
    ) private returns (uint256 returnAmount) {
    
        emit OrderRecord(
            fromToken,
            _baseRequest.toToken,
            tx.origin,
 -->      
            _baseRequest.fromTokenAmount,
          returnAmount
        );
        return returnAmount;
    }

Since OKX DEX support swapReceiverAddress, and the contract allows different receiver, it would be better if we can emit the receiver.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions