here we are using transfer and transferfrom instead of safetransferfrom and safetransfer .some token does not return or revert on failed transfer.
function transferRoyalties(AssetListing storage asset) internal {
// calculate fees
uint256 buyerFee = (asset.price * asset.royaltyFee) / 100;
uint256 driaFee = (buyerFee * getCurrentMarketParameters().platformFee) / 100;
token will be lost due to this.transfer will be failed and tokens will get struck.
use safetransfer and transfer .
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.