Skip to content

Instantly share code, notes, and snippets.

@QuantSoldier
QuantSoldier / UniswapAdd.sol
Created February 7, 2021 06:36
Uniswap V2: Gas Efficient Contract to add Liquidity to any ETH/ERC-20 LP Pair with ETH
pragma solidity ^0.7.0;
import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol';
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import {IUniswapV2Router02} from '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';
interface IWETH9 {
function deposit() external payable;
}
@bmaupin
bmaupin / open-source-sso.md
Last active March 1, 2026 19:18
Comparison of some open-source SSO implementations

⚠️ This is not maintained. Feel free to check comments and/or forks for more current options.

Background

This was created years ago; at the time I'd been a Shibboleth admin for nearly a decade but we needed something that could handle OIDC/OAuth and that explicitly supported OpenJDK. After a lot of investigation, I really liked Keycloak/Red Hat Single Sign-On. More details here: Gluu vs keycloack vs wso2 identity management

Comparison

(Items in bold indicate possible concerns)