Merge pull request #1367 from 0xProject/fix/instant/dai

[asset-buyer][instant] support DAI in instant
This commit is contained in:
Brandon Millman 2018-12-03 15:07:23 -08:00 committed by GitHub
commit 2601d16efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 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;
}
});
}
}

View File

@ -195,7 +195,7 @@ export const assetMetaDataMap: ObjectMap<AssetMetaData> = {
'0xf47261b000000000000000000000000089d24a6b4ccb1b6faa2625fe562bdd9a23260359': {
assetProxyId: AssetProxyId.ERC20,
decimals: 18,
primaryColor: '#F2B350',
primaryColor: '#DEA349',
symbol: 'dai',
name: 'Dai Stablecoin',
},