There are multiple ways to achieve stablecoins.
- centralized issuing authority backs the coins with dollars, here although the trust is the same as in a central authority, for people in Nigeria and Brazil, its asymmetric compared to people in the US. For Americans, a central authority is a central authority. For Nigerians, a central authority in US (or Carribean etc) is vastly different from a central authority in Nigeria. Example: USDC, USDT, PAX
- Seigniorage-style stablecoins, these coins try to algorithmically issue or reduce the total coins to keep the price stable. This seems to have never worked. Most stablecoins in this design failed.
- collateralized stablecoins - These stablecoins try to hold a certain amount of collateral in 'unstable' currency (like ETH/BAT etc) and try to maintain that collateral. If the price of the stablecoin moves away from $1, then it creates profit opportunities for people to benefit from it and help bring the price down. For example: Dai, Havven. These are experimental but seems to be working well.