oraclekit/chainlink

View on GitHub
app/models/ethereum/formatted_oracle.rb

Summary

Maintainability
A
40 mins
Test Coverage

Consider simplifying this complex logical expression.
Open

      if body.present?
        self.address = body['address'] || body['contractAddress']
        self.update_address = body['functionID'] || body['updateAddress'] || body['method']
        self.config_value = body['data'] || body['payload']
        self.payment_amount = (body['paymentAmount'] || body['amount']).to_i
Severity: Major
Found in app/models/ethereum/formatted_oracle.rb - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status