fix(asset-buyer): update SRA order provider to include DAI
This commit is contained in:
parent
57986c0e1e
commit
cd4241fac8
@ -1,4 +1,12 @@
|
||||
[
|
||||
{
|
||||
"version": "3.0.3",
|
||||
"changes": [
|
||||
{
|
||||
"note": "Update SRA order provider to include Dai"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": 1543401373,
|
||||
"version": "3.0.2",
|
||||
|
@ -100,6 +100,12 @@ export class StandardRelayerAPIOrderProvider implements OrderProvider {
|
||||
} catch (err) {
|
||||
throw new Error(AssetBuyerError.StandardRelayerApiError);
|
||||
}
|
||||
return _.map(response.records, item => item.assetDataB.assetData);
|
||||
return _.map(response.records, item => {
|
||||
if (item.assetDataA.assetData === takerAssetData) {
|
||||
return item.assetDataB.assetData;
|
||||
} else {
|
||||
return item.assetDataA.assetData;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user