#[no_mangle]
pub extern "C" fn buy()
Expand description

Buy entrypoint of the droplinked contract

Gets the ratio verifier, gets the incoming purse, splits its tokens to the producer, publisher and droplinked based on the fee and comission and shipping and tax, and ratio of casper/usd Verifies the signature of the droplinked account on the ratio, and checks the time provided to it (to prevent time based ratio attacks) Transfers the calculated amounts to corresponding accounts, and transfers the NFT