import { ApiProperty } from '@nestjs/swagger';

export class SettlementResultDto {
  @ApiProperty({ description: '是否成功', example: true })
  success: boolean;

  @ApiProperty({ description: '结算的USDT金额', example: 1000 })
  settledUsdtAmount: number;

  @ApiProperty({ description: '实际收到的币种数量', example: 0.5 })
  receivedAmount: number;

  @ApiProperty({ description: '结算币种', example: 'BNB' })
  settleCurrency: string;

  @ApiProperty({ description: '交易哈希', example: '0x...', nullable: true })
  txHash?: string;

  @ApiProperty({ description: '错误信息', example: null, nullable: true })
  error?: string;
}
