@@ -85,7 +85,7 @@ export default class EthScannerProcessor extends EthBasic {
85
85
throw new Error ( this . _settings . currencyCode + ' EthScannerProcessor._get empty trezorServer' )
86
86
}
87
87
88
- if ( ! this . _trezorServer ) {
88
+ if ( ! this . _trezorServer && this . _trezorServerCode !== 'MATIC_TREZOR_SERVER' ) {
89
89
return false
90
90
}
91
91
@@ -95,10 +95,15 @@ export default class EthScannerProcessor extends EthBasic {
95
95
return CACHE [ this . _mainCurrencyCode ] [ address ]
96
96
}
97
97
98
- let link = this . _trezorServer + '/api/v2/address/' + address + '?details=txs'
98
+ let link = this . _trezorServer + '/api/v2/address/' + address + '?details=txs&pageSize=40'
99
+ if ( this . _trezorServerCode === 'MATIC_TREZOR_SERVER' ) {
100
+ link = 'https://proxy.trustee.deals/matic/getTxs?address=' + address
101
+ }
99
102
let res = await BlocksoftAxios . getWithoutBraking ( link )
100
-
101
103
if ( ! res || ! res . data ) {
104
+ if ( this . _trezorServerCode === 'MATIC_TREZOR_SERVER' ) {
105
+ return false
106
+ }
102
107
BlocksoftExternalSettings . setTrezorServerInvalid ( this . _trezorServerCode , this . _trezorServer )
103
108
this . _trezorServer = await BlocksoftExternalSettings . getTrezorServer ( this . _trezorServerCode , this . _settings . currencyCode + ' ETH.Scanner._get' )
104
109
if ( typeof this . _trezorServer === 'undefined' ) {
@@ -112,6 +117,9 @@ export default class EthScannerProcessor extends EthBasic {
112
117
return false
113
118
}
114
119
}
120
+ if ( typeof res . data . data !== 'undefined' ) {
121
+ res . data = res . data . data
122
+ }
115
123
116
124
if ( typeof res . data . balance === 'undefined' ) {
117
125
throw new Error ( this . _settings . currencyCode + ' EthScannerProcessor._get nothing loaded for address ' + link )
0 commit comments