[fix] getOrderAmount() function