ton-blockchain / multisig-contract-v2

Multiowner wallet
54 stars 19 forks source link

Possible incorrect estimation if time is expired #44

Closed SubFactorial closed 6 months ago

SubFactorial commented 6 months ago

In multisig.func in lines: 193-196 there are following code: int get_order_estimate(cell order, int expiration_date) methodid { (, , cell signers, , , ) = load_data(); return calculate_order_processing_cost(order, signers, expiration_date - now()); }

If time is expired then duration will be negative and it is possible that estimation will be calculated incorrectly.

tolya-yanot commented 6 months ago

get_storage_fee with negative duration will throw error