Skip to content

Instantly share code, notes, and snippets.

View Tecnocrat's full-sized avatar

Jesus Sard Tecnocrat

View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract CryptoTradingApp {
struct Position {
uint256 leverage;
uint256 amount;
}
mapping(address => Position) public tradePositions;