|
|
@ -447,8 +447,10 @@ double basilisk_request_listprocess(struct supernet_info *myinfo,struct basilisk |
|
|
|
{ |
|
|
|
if ( minamount != 0 && maxamount > minamount && time(NULL) > BASILISK_DEXDURATION/2 ) |
|
|
|
{ |
|
|
|
printf("automatch[%d] quoteid.%u triggered %.8f > %.8f\n",maxi,list[maxi].quoteid,dstr(maxamount),dstr(minamount)); |
|
|
|
*issueR = list[maxi]; |
|
|
|
for (i=0; i<sizeof(*issueR); i++) |
|
|
|
printf("%02x",((uint8_t *)issueR)[i]); |
|
|
|
printf(" automatch[%d] quoteid.%u triggered %.8f > %.8f\n",maxi,list[maxi].quoteid,dstr(maxamount),dstr(minamount)); |
|
|
|
if ( minamount > 0 ) |
|
|
|
metric = (dstr(maxamount) / dstr(minamount)) - 1.; |
|
|
|
else metric = 1.; |
|
|
|