take_funds

Function take_funds 

Source
pub fn take_funds(pool: &mut U256, take: U256) -> U256
Expand description

Attempts to subtract up to take from pool without going negative. Returns the amount actually subtracted.