```\nfunction \_commit(uint256 \_weaveAmount, GoldOrder memory \_order)\n  internal\n{\n  // Check if weave sent is sufficient for order\n  uint256 total\_cost = \_order.cardAmount.mul(goldPrice).add(\_order.feeAmount);\n  uint256 refund\_amount = \_weaveAmount.sub(total\_cost); // Will throw if insufficient amount received\n```\n