status-im/status-go

View on GitHub
services/wallet/thirdparty/paraswap/request_build_transaction.go

Summary

Maintainability
A
1 hr
Test Coverage
F
19%

Method ClientV5.BuildTransaction has 12 arguments (exceeds 6 allowed). Consider refactoring.
Open

func (c *ClientV5) BuildTransaction(ctx context.Context, srcTokenAddress common.Address, srcTokenDecimals uint, srcAmountWei *big.Int,
    destTokenAddress common.Address, destTokenDecimals uint, destAmountWei *big.Int, slippageBasisPoints uint,
    addressFrom common.Address, addressTo common.Address, priceRoute json.RawMessage, side SwapSide) (Transaction, error) {
Severity: Major
Found in services/wallet/thirdparty/paraswap/request_build_transaction.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status