Skip to content

Instantly share code, notes, and snippets.

View Turupawn's full-sized avatar
🇭🇳
Karaoke veteran

Ahmed Castro Turupawn

🇭🇳
Karaoke veteran
View GitHub Profile
@Turupawn
Turupawn / percentual_tax.sol
Created August 8, 2021 17:15
Comisiones porcentuales
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.3/contracts/token/ERC20/ERC20.sol";
contract MyERC20 is ERC20 {
string TOKEN_NAME = "Token";
string TOKEN_SYMBOL = "TKN";
uint256 TOTAL_SUPPLY = 21000000 ether;
address LIQUIDITY_ADDRESS = 0x0000000000000000000000000000000000000000;
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
contract Router {
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
contract Router {
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
1. Lanzar Liquifier
2. Colocar el address de Liquifier en el Token
3. Recompilar y lanzar token
4. Approve el router en el token
5. Proveer liquidez con token B
6. Hacer tx a otra wallet
Puntos a mejorar:
* Usar "Tranfer" en vez de "mint" y "burn"?
* Buscar una manera no usar el contrato intermediario?
@Turupawn
Turupawn / document.json
Created August 17, 2021 15:18
TodoLegal
{
"document":{
"id":6903,
"name":"",
"created_at":"2021-08-12T03:47:49.895Z",
"updated_at":"2021-08-12T03:53:02.884Z",
"url":"6903--35672",
"publication_date":"2021-07-30",
"publication_number":"35,672",
"description":"Aprobar en todas y cada una de las partes el CONTRATO DE PRÉSTAMO No.4942/BL- HO, suscrito el 17 de Marzo de 2021, entre el Banco Interamericano de Desarrollo (BID), en su condición de Prestamista y el Gobierno de la República de Honduras, en su condición de Prestatario del financiamiento de hasta un monto de CUARENTA Y CUATRO MILLONES SETECIENTOS MIL DÓLARES DE LOS ESTADOS UNIDOS DE AMÉRICA (US$44,700,000.00), recursos destinados a financiar la ejecución del “PROYECTO DE TRANSFORMACIÓN DIGITAL PARA UNA MAYOR COMPETITIVIDAD”",
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract Router {
function swapETHForExactTokens(
@Turupawn
Turupawn / FangGang.sol
Created October 18, 2021 19:47
Buenísimo
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract FangGang is ERC721Enumerable, Ownable {
using Address for address;
// Starting and stopping sale and presale
@Turupawn
Turupawn / PudgyPenguins.sol
Created October 18, 2021 20:01
Excelente
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./ERC721Pausable.sol";
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
{
"Licitaciones": 79,
"Avisos Legales": 78,
"Marcas": 63,
"Propiedad Intelectual": 54,
"Acuerdo de Nombramiento": 39,
"Covid": 22,
"Presupuesto": 16,
"Garantías Constitucionales": 16,
"Cancelación de Acuerdo de Contratación": 15,