audit fix02
This commit is contained in:
@@ -42,7 +42,7 @@ contract DVMStorage is InitializableOwnable, ReentrancyGuard {
|
||||
// ============ Shares (ERC20) ============
|
||||
|
||||
string public symbol;
|
||||
uint256 public decimals;
|
||||
uint8 public decimals;
|
||||
string public name;
|
||||
|
||||
uint256 public totalSupply;
|
||||
|
||||
@@ -103,7 +103,12 @@ contract DVMTrader is DVMVault {
|
||||
uint256 quoteAmount,
|
||||
address assetTo,
|
||||
bytes calldata data
|
||||
) external preventReentrant {
|
||||
)
|
||||
external
|
||||
preventReentrant
|
||||
isSellAllow(assetTo)
|
||||
isBuyAllow(assetTo)
|
||||
{
|
||||
_transferBaseOut(assetTo, baseAmount);
|
||||
_transferQuoteOut(assetTo, quoteAmount);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user