- 
                Notifications
    
You must be signed in to change notification settings  - Fork 40
 
feat: atomic ntoken #326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: atomic ntoken #326
Conversation
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Co-authored-by: Hong Liang <[email protected]>
Signed-off-by: GopherJ <[email protected]>
        
          
                contracts/protocol/tokenization/libraries/MintableERC721Logic.sol
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                contracts/protocol/tokenization/libraries/MintableERC721Logic.sol
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                contracts/protocol/tokenization/libraries/MintableERC721Logic.sol
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
          Codecov Report
 @@            Coverage Diff             @@
##             main     #326      +/-   ##
==========================================
+ Coverage   75.24%   75.80%   +0.55%     
==========================================
  Files          83       83              
  Lines        3826     3918      +92     
  Branches      714      737      +23     
==========================================
+ Hits         2879     2970      +91     
+ Misses        571      560      -11     
- Partials      376      388      +12     
 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.  | 
    
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
Signed-off-by: GopherJ <[email protected]>
| { | ||
| return ( | ||
| _ERC721Data.userState[account].balance, | ||
| _ERC721Data.userState[account].atomicBalance, | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should optimize the gas cost here because we are not using all these anymore in GenericLogic
Signed-off-by: GopherJ <[email protected]>
| uint64 balanceLimit; | ||
| mapping(uint256 => bool) isUsedAsCollateral; | ||
| mapping(uint256 => DataTypes.Auction) auctions; | ||
| address underlyingAsset; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should still take the same slot 67
Signed-off-by: GopherJ [email protected]
Security Checklist
Make sure to think about each of these exploits in this PR.