fix(asset-buyer): update SRA order provider to include DAI

This commit is contained in:
Brandon Millman 2018-12-03 10:42:25 -08:00
parent 57986c0e1e
commit cd4241fac8
2 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,12 @@
[
{
"version": "3.0.3",
"changes": [
{
"note": "Update SRA order provider to include Dai"
}
]
},
{
"timestamp": 1543401373,
"version": "3.0.2",

View File

@ -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;
}
});
}
}